Take the poster's script above and copy it to a text file. Now replace \n with a new line, save and it should run.