1. Configure the VM to logon to Windows automatically:
http://www.google.com/search?hl=en&l...n+windows+2003
2. Configure a command script or batch file to run at startup which
a) Runs your program
b) shuts down Windows:
http://www.google.com/search?hl=en&l...n+windows+2003