In an earlier post I wrote about getting your public IP address from the CLI or script using the ip.appspot.com webpage and CLI. Here is how you can do the same thing using PowerShell and the Net.WebClient.

$web = New-Object net.WebClient
$web.downloadstring("http://ip.appspot.com")

You can use this to pull down any webpage. Have fun.