Setting up an editor for PowerShell scripts

When editing PowerShell scripts, you can use a different editor than you would normally use for other (.vbs) scripts. To set it up, click Tools => Options…

-and select the General Tab on the left side.

PowerShell Integrated Script Editor

The Native Integrated Scripting Editor (ise) for PowerShell is powershell_ise.exe. The full path is; %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell_ise.exe.

Visual Studio Code

Microsoft also makes another powerful editor that is suitable for PowerShell editing; Visual Studio Code. The full path is; %LocalAppData%\Programs\Microsoft VS Code\Code.exe

Notepad++

Another great text editor is the Notepad++ editor. The default installation path is; %ProgramData%\Notepad++\notepad++.exe

If you chose to use Notepad++, then be sure to save any edited file before exiting the program, as it will not prompt you to save your changes, but instead, it will save them in a temporary folder, from where it will be loaded, next time you start the editor. The problem with that is that the CapaInstaller Console no longer will be listening to changes to the script because the Notepad++ instance has exited.