The PostScript file does not print because the Windows driver inserts the control character ^D at the beginning and the end of the file. Just delete the hidden control character ^D before "%!" and after "%%EOF".
Some versions of the Windows PostScript driver also have a setting to turn off the sending of control-D characters.