I have a very simple PS script which ends in outputting a CSV file.
When I am testing such outputs (CSV), I usually use Out-Gridview (or Out-Host) to see the results quickly and then change the script to Out-File when the code is “truly final”.
For this script (not shown) when I use Out-Host or Out-File, I get the exact correct results.
But when I use Out-Gridview, I get nothing, i.e., no screen displays and the script just returns to the PS prompt.
The CSV file is just 4 columns (fields) and well under 80 characters total.
Is there a reason for this behavior?
Would be grateful for any tips, advice or suggestions.