auto-it Free scripting tool, keyboard macros and compiled exe files
http://www.autoitscript.com/autoit3/http://www.autoitscript.com/or the new powershell or a combination of both.
The first also handles mouse movements and has a recorder available.
I hope this helps !