I need to connect vcenter by connect-VIserver command but by getting the password from hashicorp vault .Given that i've the token, vault url and vault secret
Have you looked at the SecretManagement and SecretStore modules with the SecretManagement.Hashicorp.Vault.KV extension?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference