WAN IP:
$WebResponse = Invoke-WebRequest https://ip.kbhost.nl -UseBasicParsing $WebResponse.content
Example with proxy:
$WebResponse = Invoke-WebRequest https://aanvragen.uziregister.nl -Proxy http://proxy.ezorg.nl:8080 -ProxyUseDefaultCredentials -UseBasicParsing $WebResponse.content