In Sitecore 9.02 I get this error running any script in Powershell ISE. Console works fine.
Stack trace:
[NullReferenceException: Object reference not set to an instance of an object.] Cognifide.PowerShell.Core.Settings.c__DisplayClass88_0.b__0(ItemEditArgs p) +402 Cognifide.PowerShell.Core.Extensions.ItemExtensions.Edit(Item item, Action`1 action) +688 Cognifide.PowerShell.Core.Settings.ApplicationSettings.Save() +277 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, ScriptSession scriptSession, Boolean autoDispose, Boolean debug) +1793 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, Boolean debug) +1252 Cognifide.PowerShell.Client.Applications.PowerShellIse.Debug(ClientPipelineArgs args) +199