I have same issue while connecting to on premise instance with followings commands :
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType