You can copy and paste this into a text file and save it as anything.bat
The only important thing is the .bat