print

Print a text file to a printer. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/print.

print {{path\to\file}}

print /d:{{printer}} {{path\to\file}}