Provide a true "pause" function in PowerShell that works both in PowerShell console and PowerShell ISE
Votes from Connect: 4
Original Date Submitted: 10/24/2015 12:51:25 AM
Site Name: PowerShell
Feedback ID: 1934336
The current method for pausing a PowerShell script requires the following code:
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
The problem with this is that this functionality does not work when running PowerShell scripts from within PowerShell ISE.
However, as most PowerShell developers frequently work in the PowerShell ISE, this severely limits the usability of the PowerShell ISE since not all functionality is provided the same in the PowerShell ISE as in the normal PowerShell console.
Therefore, Microsoft should simply provide a true "pause" PowerShell function that works just as well in the PowerShell Console as in the PowerShell ISE.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1934336 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1934336).
Internal BugId: 15915