Running as-is on my machine results in a fetchContent and publish result of -1. After digging into it, I found the underlying exception was "The response content cannot be parsed because the Internet Explorer engine is not available, or Internet
Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again".
When I add "-UseBasicParsing" to the end of Invoke-WebRequest, the script then works.
Running as-is on my machine results in a fetchContent and publish result of -1. After digging into it, I found the underlying exception was "The response content cannot be parsed because the Internet Explorer engine is not available, or Internet
Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again".
When I add "-UseBasicParsing" to the end of Invoke-WebRequest, the script then works.