I want to get one line of output at a time while running this command.
Invoke-RestMethod -Uri http://blogs.msdn.com/powershell/rss.aspx | Format-Table -Property Title, pubDate
So I want to get one line of output and then press Enter
or Any key
to get the next line of out or press Ctrl+C
to break the command.
I couldn't achieve it with $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')