Formatting syntax for custom commands

I have created a custom command for auto-creating layers, but I am not able to load the run the command from the custom commands window.

 

The routine runs fine if I just use LOADAPPLICATION, locate the file, load it, and then type layer_up on the command line. I just can't figure out how to load it and run it from the custom commands.