You can use /loadtext to run an arbitrary number commands from a file (placed either in game or save directory).