I have a script that presents results using out-gridview. Here is a simple example:

"hello world" | out-gridview

When I run the script using Run with PowerShell, it will open gridview and close it immediately after it is opened. (I think this is because gridview is not modal and the script finishes.)

How to make the PowerShell wait until the gridview is manually closed?

Edit
Report