The PowerShell Guy wrote an excellent script that produces a GUI for monitoring PowerShell scriptblocks:
Start-Monitor
I added
- automatic type-detection, so
- columns are not sorted as text, but according to their type
- numeric columns will be right-aligned
- option to run scriptblock from textbox
- option to save output to .csv
- some formatting
- standard module-documentation
Syntax Start-Monitor
Start-Monitor [[-Interval] <Integer>] [[-Scriptblock] <scriptblock>]
Example
Start-Monitor
Description
Opens a blank form where you can enter a scriptblock.
Press Ctrl-R to execute the scriptblock.
Example
Start-Monitor.ps1 -Interval 30 -ScriptBlock {(gps | select PSResources,cpu -ExcludeProperty TotalProcessorTime)}