Get-ChildItem -path $Directory -recurse -include *.html | ForEach-Object {Start-Process -FilePath $_.fullname -Verb Print -PassThru | %{sleep 5;$_} | kill }
How do I suppress the print dialog ? I need to print a list of 200+ .html files. But the above code keeps prompting before printing each file ?