Look what you can do in PowerShell
Launching a (potentially hidden) internet explorer application (thanks Abhishek)
$a = new-object -com InternetExplorer.Application
$a.visible=$true
$a.Navigate2("http://www.microsoft.com")
What's the equivalent to cmd.exe's start /wait command (thanks PowerShell Guy)
$notepad = [System.Diagnostics.Process]::Start( "notepad.exe" )
$notepad.WaitForExit(2000) #wait 2 seconds
$notepad.WaitForExit() #wait forever
# Note: CodePlex has a Start-Process cmdlet that looks promising
Retrieving Version Numbers from DLLs and EXEs (thanks Time is an illusion)
ls c:\windows\*.exe | get-fileversion
Download from an RSS Feed (thanks Abhishek)
#Create the Service Endpoint Url
$url=("http://xml.weather.yahoo.com/forecastrss?p=" + "90210")
#download the rss feed and cast to xml
$webclient = new-object System.Net.WebClient
$weatherData=[xml]$webclient.DownloadString($url)
echo $weatherData.rss.Channel.item.Title
Or just download a website contents
$webclient = new-object System.Net.WebClient
$webclient.DownloadString(”http://server/location”)
Someone figured out how to upload files to fickr via PowerShell. Haha! Neat!
Invoking Script Blocks from C# looks simple… as long as you know how. (thanks Windows PowerShell)
try Installing CodePlex for things lots of useful new commands. Some of them, like Set-FileDate (touch), Out-Clipboard and Test-Xml should just get bundled in by default.
You can trap and re-throw exceptions. The documentation seems non-existant, but someone was kind enough to release a chapter of their book for free. (Thanks Windows PowerShell)