Get External IP Address

Invoke-RestMethod 'https://api.ipify.org?format=json' | Select-Object -ExpandProperty IP
Details
Uses the ipify API to return your external IP address

Example
PS C:\> Invoke-RestMethod 'https://api.ipify.org?format=json' | Select-Object -ExpandProperty IP

72.30.35.10