Has anyone been able to complete something like this? This works perfectly in a plain PoSh window but running in a Start-Job it never gets past the connect-ciserver. The job shows running and HasMoreData .. but again, never completes.
I'm using PowerCLI 5.1 Update 2 and Powershell 3.0 which is supported under my PowerCLI version.
Start-Job -ScriptBlock { # Add PSSnapins Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VMware.VimAutomation.Vds Add-PSSnapin VMware.VimAutomation.License Add-PSSnapin VMware.DeployAutomation Add-PSSnapin VMware.ImageBuilder Add-PSSnapin VMware.VimAutomation.Cloud Connect-CIServer -Server testcloud.cloud.com -User testuser -Password Test111 Get-CIVApp }