en-us/Fun_With_Show-LastOutput.walkthru.help.txt
<#
IsePack is full of interesting tricks. Of my personal favorites is output interception. When you're running IsePackV2, the output of every command is stored in a variable called $lastOutput. You can show the last output in a side pane at any time by pressing ALT+O. When you do this, $lastOutput is rendered with Out-HTML, almost like it would be in a [PowerShell Pipeworks](http://powershellpipeworks.com) web site. Let's check out some cool things you can do with this. #> Resolve-Location "1600 Pennsylvania Ave, Washington, DC" <# Common cmdlets tend to render well. #> Get-Process <# If you've got a Wolfram|Alpha api key, this sample shows how much easier it is to view Wolfram|Alpha information in a sidebar pane. #> Search-Engine "MSFT" -WolframAlphaApiKeySetting WolframAlphaApiKey -WolframAlpha <# Another awesome example of Show-LastOutput is using Search-Engine to search for images. #> Search-Engine "PowerShell" -SearchService Image <# Almost as cool is the ability to search for videos. #> Search-Engine "PowerShell" -SearchService Video <# Since user records in Pipeworks are [http://schema.org/Person]() objects, this is also a really useful way to get to show a user. Active Directory objects will show telephone, office, location, and department. #> $me = New-Object PSObject -Property @{ LiveId = '90cf87c2811c5385' LiveIdAccessToken = 'NotGoingToTellYouThis' UserEmail = 'james.brundage@start-automating.com' Bio = 'Working Towards a Better World, One Script at a Time.' Gender = 'male' Birthday = '12/17/1981' Name = 'James Brundage' } $me.pstypenames.clear() $me.pstypenames.add('http://schema.org/Person') $me |