Update: This batch file works perfectly. It also runs completely behind the scenes so no popup cmd window like I expected.

Thanks to everyone who gave their input. I can now concentrate on my other problem as posted over in hardware.