For larger script or automations it would be nice to have a shortcut to toggle collapse on all options like below:
Within the powershell ISE or VS Code they used CTRL + M