On a Windows server with Internet Explorer Enhanced Security Configuration enabled, calling Invoke-WebRequest like this:
Invoke-WebRequest "http://localhost" -UseBasicParsing -UseDefaultCredentials
Results in this error dialog:
Considering that this script is intended to be run remotely, I'd like to avoid the dialog appearing at all.