execute command with html button CM6

How can I execute a command with a html button in CM6? It seems that commands can only be run by KeyBindings?

Commands are just functions. Call them as normal.