Not sure I got your question but if you want to turn off some commands...
You can use a global variable(using "set") and every time you want to turn off some commands you will set the variable On. On each command that you want to be able to turn off you can just simply add an if statement that will check if that variable is On. If it's On, you just return (or halt).
Hope it helped.