You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add example of starting PSES in a script to readme (#1932)
# Problems Solved:
- Executing pwsh with the original command (top, the old one is left in there) causes shells to hang. Not script or automation friendly.
- The arguments list is also long enough to scroll off the screen on most devices. Spacing them out over an array that gets joined into a string is a screen-friendly alternative.
- However, keeping the old one is good for users who just want a quick copy and paste one-liner.
> -`$PSES_BUNDLE_PATH` is the root of the PowerShellEditorServices.zip downloaded from the GitHub releases.
52
52
> -`$SESSION_TEMP_PATH` is the folder path that you'll use for this specific editor session.
53
53
54
+
If you are trying to automate the service in PowerShell, You can also run it under `Start-Process` to prevent hanging your script. It also gives you access to Process/PID automation features like `$process.Close()` or `$process.Kill()`
0 commit comments