Starting with version 1.9 PowerGUI can maintain your editor workspace between the sessions.
So if you are in the middle of your script development and your Windows wants to reboot:
You can go ahead and close the script editor and just ask it to save the tabs before quitting:
And next time you start PowerGUI Script Editor – all your tabs, panes layout, and even breakpoints and bookmarks are magically the way they were:
And you can obviously make saving the tabs a default at any time from Tools/Options:
Happy PowerShell scripting! 🙂