Invoke-WebRequest куда смотреть при unexpected error: TLS, SSL
Опишу возможные варианты поиска и решения проблем возникновения ошибок
System.Net.Http.HttpRequestException: The SSL connection could not be established
The underlying connection was closed: An unexpected error occurred on a send.