If you add these two functions to your game:
<function name="HideCommandBar">
request (Hide, "Command")
</function>
<function name="ShowCommandBar">
request (Show, "Command")
</function>
then you can hide and show the command bar whenever you like by calling them.