The test GUI has a menu item to load a file. You can also write a Java class to load a script into the bot.