title: Command to list all available commands in Windows Command Prompt
body: <p>I’d like to programmatically get a list of all the available commands in Windows Command Prompt (<code>cmd.exe</code>). Is there something like <a href="https://stackoverflow.com/a/949006/96656"><code>compgen -c</code> in Bash</a>, but for Windows?</p>