Modelkit has an energyplus-run function that simplifies command line executions. Check out this video demonstrating modelkit commands, and the following video showing how to use a rakefile to automate these commands.