Add a wait to powershell to wait until the print command is complete before moving on

Right now I have a delay that waits 5 seconds after a poweshell, however instead of using the delay is there a way to add wait language to say as soon as a document is printed move onto the next file? Below is my powershell script and my file I am trying to run it in.

String.Format(“Start-Process '” + CurrentFile.FullName + “’ -Verb PrintTo " + “””" + MyPrinterName + “”“”)

Main.xaml (14.7 KB)

Would any of the answers from this topic help How to tell PowerShell to wait for each command to end before starting the next? - Stack Overflow - https://stackoverflow.com/?