Hi LucD,
It will be more helpful if you can please clarify this 'split line'
[vSphere PowerCLI] C:\> $h.ExtensionData.Client.ServiceUrl
So while spliting, $h.ExtensionData.Client.ServiceUrl.split('/')[2], how VC name becomes 3 rd value in the array.
1st value is https and 2nd value shows "blank"