This reads all .c files and searches for command registration.
It then creates a 'commands.md' file.
We could make it prettier - it's an example at the moment.
to run:
npm run getcommands
or
node scripts/getcommands.js
(cherry picked from commit aaa6cece404dfc094771c29d834e7c856a27e852)