Wednesday, 8 March 2017

How to stop PowerShell console to exit after finishing the script run


Command:-add below command to the end of your script.
$host.enternestedprompt()

Results:-It will stop a running script and start a iterative prompt.

No comments:

Post a Comment

Comments System

Disqus Shortname