Sorry should have written that too
You can make the script directly on the switch with the command :
edit script "script_name"
You will then use the builtin VI editor to make the script, and then you can load that script with the command :
Load ...