Enerplot provides the facilities to write scripts for you through a script recording feature:
First either create a new script or add an existing script file (*.py).
Press the Record button in the Scripts pane.
Perform the steps to be recorded.
Press the Stop button in the Scripts pane to stop the recording.
That's it! You should be able to save and run your script immediately.
See Application Automation for more details on recording.