Keep PowerShell output window open

I created a button that calls a PowerShell script. But the window closes as soon as script is called so you can't see the output. I tried adding @leavedoswindowopen before and after the PowerShell script call but it doesn't seem to work.
How can I keep the output window (PowerShell) open? Or is there a better way to pipe the output to a specific Opus output window that will stay open?

Example of the call:
powershell.exe C:\Scripts\ShowInfo.ps1 {dlgstring|Enter System Name} {dlgchoose|Select Output Type|TEXT=text+JSON=json+XML=xml}

Thanks,

powershell.exe -noexit ... according to this:

Yup - that did it. Thanks!
Never used that option.