I suspect you're using multi-mode ?
Can't you solve that by using the -Server parameter on the Get-View cmdlet?
Get-View ServiceInstance -Server $DefaultVIServer
Blog: LucD notes
Twitter: lucd22Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
On the multi mode option, i haven't looked into that yet.
I will test your snippet and have a look if it works.
That works, not to get the update license task to work.