VIX allows you to automate virtual machine operations and is the engine behind for example VMware's vmrun command.
VMware VIX API page
VIX API referene Guide
JVix
pyVix
pyvmware
Rexx/Vix
Support my products