But like in debug mode in Visual Studio, what if you don't everything to shut down when your ps1 script terminates, so you can read whatever output it produced. How do you do this. If I run a script that does something like write-host 'hello' . A window flashes on the screen and the process terminates and I don't see its output anywhere