How to quickly check the vCenter version in powercli and the connection script if required
# Vcenter Connection Script and Version Details
$cred = Get-Credential
$vCenters = "lab-vcenter01.lab.local", "lab-vcenter02.lab.local"
Connect-VIServer $vCenters -Credential $cred
$global:DefaultVIServers | Select Name,Version
# Vcenter Connection Script and Version Details
$cred = Get-Credential
$vCenters = "lab-vcenter01.lab.local", "lab-vcenter02.lab.local"
Connect-VIServer $vCenters -Credential $cred
$global:DefaultVIServers | Select Name,Version