I ran into this same issue, and was able to resolve it with the following command.
PS> Install-Module VMware.VimAutomation.Sdk
If you have not already done so, you may need to first use the Save-Module command.
I ran into the same issue with a connect-viserver.
To resolve it.
I had forgotten to uninstall the previous version of Vmware powercli from the control panel.
So the old Setup.exe version of powercli. Simply uninstalled from control panel and it started working fine from the module.
If you installed VMware power CLI run below command
1. Save all modules in temp folder in C drive ...
its will give list of modules installed
2 Copy the files you downloaded to the offline computer
3.Move the copied files to C:\Windows\System32\WindowsPowerShell\v1.0\Modules
4. #Set the participation to false and ignore invalid certificates for all users
Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCeip $false -InvalidCertificateAction Ignore
5.#Connect to our vCenter Server using the logged in credentials