Sounds like you found something that worked. If you're interested in heavy-duty automation on Windows, I recommend cygwin (link) - a linux terminal emulator for Windows. I have used it extensively with shell scripting to automate a wide variety of data processing functions. I've also heard good things about PowerShell (wikipedia link), but have not used it personally.