Is there a content to contribution to exit VMware vSphere PowerCLI order provoke subsequent to executing an arrangement of content for instance made of VM.
MY last line of my .ps1 content is demonstrated as follows, however the exit does not work, in the wake of executing my content, the order incite is still there, dissimilar to windows summon fast as the leave charge works yet not in powercli.
New-VM -name $vm -DiskMB 10000 -memoryMB 4000
New-CDDrive -VM $vm -ISOPath $win7 -StartConnected:$true -Confirm:$false
$scsiController = Get-HardDisk -VM $vm | Select -First 1 | Get-ScsiController
Set-ScsiController -ScsiController $scsiController -Type VirtualLsiLogicSAS -Confirm:$false
Start-VM -vm $vm
Exit
Thank You