<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Pause</title><link>http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx</link><description>In the Newsgroup Microsoft.Public.Windows.PowerShell, BJ Stigall asked what the equivalent of the batch file PAUSE function was in PowerShell. There were lots of good answers that came close but I think the one below comes the closest (and a little bit</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Hey, PowerShell Guy ! How Can I Monitor Event Log Messages for Specific Words?</title><link>http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx#1765323</link><pubDate>Mon, 26 Feb 2007 23:40:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1765323</guid><dc:creator>The PowerShell Guy</dc:creator><description>&lt;p&gt;In the Hey Scripting Guy article : How Can I Monitor Event Log Messages for Specific Words? , a WMI eventwatcher&lt;/p&gt;
</description></item><item><title>re: Pause</title><link>http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx#9627473</link><pubDate>Tue, 19 May 2009 13:16:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9627473</guid><dc:creator>Ade</dc:creator><description>&lt;p&gt;Can PAUSE be used to pause a running application if not how can I pause a running application using powershell.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item><item><title>re: Pause</title><link>http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx#9890378</link><pubDate>Wed, 02 Sep 2009 16:17:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890378</guid><dc:creator>Anselm</dc:creator><description>&lt;p&gt;Isn't it more elegantly to get the valid values for an enum using the following code?&lt;/p&gt;
&lt;p&gt;[System.Enum]::GetNames(&amp;lt;type&amp;gt;)&lt;/p&gt;
&lt;p&gt;In this case:&lt;/p&gt;
&lt;p&gt;[System.Enum]::GetNames([System.Management.Automation.Host.ReadKeyOptions])&lt;/p&gt;</description></item><item><title>re: Pause</title><link>http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx#9895141</link><pubDate>Tue, 15 Sep 2009 00:20:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895141</guid><dc:creator>Chris Patti</dc:creator><description>&lt;p&gt;Great article!&lt;/p&gt;
&lt;p&gt;In PowerShell 2 CTP3 I get:&lt;/p&gt;
&lt;p&gt;Press any key to continue...Exception calling &amp;quot;ReadKey&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;The method or operation is not implemented.&amp;quot;&lt;/p&gt;
&lt;p&gt;So, I solved the problem by just calling .ReadKey with no arguments instead.&lt;/p&gt;</description></item><item><title>re: Pause</title><link>http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx#9913744</link><pubDate>Tue, 27 Oct 2009 22:00:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913744</guid><dc:creator>Joe Arauzo</dc:creator><description>&lt;p&gt;I'm getting a similar error, but only when I run my script within Powershell ISE (Win 7 Pro).&lt;/p&gt;
&lt;p&gt;Press any key to exit&lt;/p&gt;
&lt;p&gt;Exception calling &amp;quot;ReadKey&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;The method or operation is not implemented.&amp;quot;&lt;/p&gt;
&lt;p&gt;At C:\Users\jma6a\Scripts\HAMemCheck.ps1:31 char:32&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; $null = $host.UI.RawUI.ReadKey &amp;lt;&amp;lt;&amp;lt;&amp;lt; (&amp;quot;NoEcho,IncludeKeyDown&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [], MethodInvocationException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ FullyQualifiedErrorId : DotNetMethodException&lt;/p&gt;
&lt;p&gt;Otherwise, it runs fine in a Powershell console. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I remove the arguments as Chris Patti suggested, I don't receive the error but it does not pause.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;</description></item></channel></rss>