Happens with Invoke-Restmethod and can be fixed by enforcing the use of TLS1.2:
[Net.ServicePointManager]::SecurityProtocol =[Net.SecurityProtocolType]::Tls12