To attempt what you are saying I took the current session ID of my connect-ciserver and passed it to the start job as an argument.... still nothing.
Start-Job -RunAs32 -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-VIServer testvc01 Get-PowerCLIConfiguration Connect-CIServer testcloud.cloud.com -SessionId $args[0] Get-CIVApp } -ArgumentList @($session)
The connect-VIServer and the Get-PowerCLIConfiguration process... but the script stops at Connect-CIServer