Why not just create a VBScript file to do what you want, and schedule it from Windows?