You cannot edit any script files in Windows PowerShell ISE while the debugger is running. To edit a script, stop the debugger. ...