• Can I do something like this ?

    Get-ChildItem -path $Directory -recurse -include *.txt | ForEach-Object {Start-Process -FilePath $_.fullname -Verb Print -PassThru | %{sleep 5;$_} | kill }

    Get-Process | Output-Printer "\\Print1\ABC01"

    where ABC01 is the name of the printer.

    or

    Get-ChildItem -path $Directory -recurse -include *.txt | ForEach-Object {Start-Process -FilePath $_.fullname -Verb Print -PassThru | %{sleep 5;$_} | kill }

    Get-Process | Output-Printer "ipaddress"