Correct, but that variable most probably contains a Datastore object, not a String.
I repeat, it looks as if the PowerCLI Dev Team didn't use OBN on the Datastore parameter of the cmdlet
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference