That page that truenorth linked to is only relevant to character printers. Like old daisywheel and dotmatrix printers. Modern bitmap printers don't work like that. There are various third party programs, the first one off the top of my head is DOSprint. another is Printfil. Unfortunately you have to pay for these.
From the command line or a batch script you can get a number of text editors to start, load a text file, print it to the default Windows printer, and then exit. For example Scite which is free. Or UltraEdit32 which isn't.
scite -p filename.txt
Of course scite in that example would have to be replaced by the full path e.g. "C:\Program Files (x86)\Scite (Text Editor)\SciTE.exe" or you could put it in a batch file on your PATH
You have to edit the Global.Properties file to enable/disable things like page headers/footers, line numbers, margins, font, and just about everything you might want to configure. Which is good. And there is loads and loads of web help for Scite which is an extremely good and useful editor.
I have just done these things, and they work.