Invoke Powershell Issue - For Each loop Open 1st PDF fine, 2nd PDF opens momentarily and closes


I am using invoke powershell to open a PDF I have saved within a for each loop to process multiple emails with PDFs. Invoke power shell opens the 1st PDF fine and processes. When the 2 PDF is being processed the PDF is opened momentarily and immediately closes down. What needs to be done to ensure the 2nd PDF remains open? Any assistance would be hugely appreciated.



Hi @JeffNZ Could you please post the powershell script?