Keep in mind that almost all commands are available through the console_command script command (gosh I never thought I'd be able to use the word command three times in one sentence).