In Windows 7 Professional and above go to Start -> Search -> gpedit.msc
Navigate to Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown)
From here, you can use GPO scripts to accomplish what you are getting at. However, Task Scheduler would be a lot easier.
Use this important resource:
Scripting for Group Policy