Save it as text file. But rather than having the usual .txt file extension, make sure it is in .bat extension (this is the file extension for batch files). After this, just double-click to run.
You might need to go under Windows Explorer > Tools > Folder options > View (tab), find "Hide extensions for known file types" and disable this first.