$ 0 0 Do you have more than 1 datacenter returned by Get-Datacenter ?If not, remove the index part ([0])