Occasionally you need to find out your public IP address when using powershell, normally you would open up a browser then search for "what's my IP?" but using this powershell one liner it can be easily found.

Within powershell run the following command

(Invoke-WebRequest -uri "http://ifconfig.me/ip" -UseBasicParsing).Content;