Currently, Connect-VIServer requires the use of a credential object (existing or created inline) for the Credential parameter. Utilizing the CredentialAttribute on the parameter allows users to specify a string value for the user name which is passed to the native PowerShell credential transformation. This change should occur on all cmdlets with PSCredential type parameters.