I don't have time to find it all right now, as I'm tired and I seldom use it, but check out Windows Scripting Host. It's a MS product that's probably in your OS right now that allows you to script stuff using VBScript and Java/J/ECMA script and some other stuff, too. It's worked well for me when I've needed to script stuff in Windows.
_________________________
Bitt Faulk