Summary: Use the Out-Gridview cmdlet to easily build a GUI menu.
How can I easily build a GUI menu in Windows PowerShell so I can select items from a list?
Pipe any array to the Out-Gridview cmdlet and you can capture the results!
‘AddUser’,’RemoveUser’,’DeleteUser’,’ExitSystem’ | Out-Gridview -passthru