How to use commands with a simple html button

      Instead of keymapping to a like with vim or emacs, I want to create a simple html button to call one the commands from commands.js. How can I call a command from commands.js? In the end, I want to be able to do this: 

              <button id="TestCmd" onclick="func()">TestCmd</button>

                    function func() {


You just need to quote the command name: