It's possible (probable, actually) that the site no longer uses the defunct TLS version your code is trying to use.
Add this to your code before contacting the web site:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Another problem may be that the site is using a self-signed certificate, an expired certificate, or a certificate that's not in your machines trusted sites list.