I was using this script, and it works perfectly for three documents, then will print the remaining documents in the directory in order by file size.
You are starting the processes in order, but by default Start-Process does not wait until the command completes before it starts the next one.
Use PowerShell to Sort CSV Files in Order
Use the Unique parameter to eliminate duplicates from the output.
Hey, Scripting Guy! I have a problem with Windows PowerShell. It seems that it deliberately randomizes the output. I mean, there seems to be no ...
Finding Old Files In order to do that, we have to get the current date,
The AsByteStream parameter ignores any encoding and the output is
The quick answer is that PowerShell uses formatting files to order the output to your liking. Since you do not have an object that is associated with a formatting ...
This command also displays the total number of files and directories listed,
Some PDF may take longer to print then others so you cannot guarantee order unless you wait until a file is finished printing before you send the next one.