I added the username and password, I changed the VM name, hostname, datastore and even tried several usernames. All keep generating the same "An item with the same key has already been added." error.
For now I will just use "Connect-VIServer -Server $vcenter" since it seems this does the trick for me and the connection is via port 443.
Thanks for the help tho.