How Does Printer Drivers Handle Printing from CommandLine?

Hi,

I wanted to know how windows printing architecture works when you send
files to print from command line.

When i print from windows application in RAW mode, the printer driver
renders the GDI commands from the application.

When printing a e txt file from the command line ( using “copy
test.txt \MyComputer\HPLaserJ5000” for example ) the print data
doesn’t pass through the printer driver. You just see a print job
being created in the spooler and sent to the printer.

So who spools the data and how it gets to the printer?

Thanks.