Summary: Toggle between outlining view in the Windows PowerShell ISE.
How can I switch to the outlining view in the Windows PowerShell ISE to collapse
the functions so it is easier to read the code?
Use the ToggleOutliningExpansion function from the Editor object, for example:
$psise.CurrentFile.Editor.ToggleOutliningExpansion()