You can also read about running from the command line in the Auxiliary Programs document.
A batch file RunEPlus.bat is installed in the program (root) folder when EnergyPlus is installed. It can be used directly or used as an example to write your own.