ok, so not only did I get it wrong, but I got it wrong late!!!
Didn't notice the bit about a <button> to print - Obviously means dialog!
Doh! Anyhow, for the script I posted, as collective said, you could use notepad.exe /p <filename> to print it
Never mind!