Hi,
Thanks for your reply, the write-host command gives me the below output:
System.Data.DataRow
System.Data.DataRow
System.Data.DataRow
I guess write-output should be the correct command, I am able to see the IP, user ID and Password when I run write-output of $vCenterIP, $vCenterUser and $vCenterPassword variables.