Show-PSEditordisplays a terminal-based PowerShell editor that contains the following features.
Show-PSEditorin a terminal.
PSScriptAnalyzerinstalled. To format a script, either press
Ctrl+Shift+Ror click Edit \ Format. If you don't have
PSScriptAnalyzerinstalled, you can do so with the command below.
F5to run the entire script. If you want to execute a select, you can press
F8. You can also execute the script in the terminal and exit the editor by pressing