Josh, I am wondering if we can give back control to the execution environment when a PS statement is executed before it finishes.
I have a script that uses Export-VM as follows
Export-VM -NameDC1 -path \BackupServer\myBackups\cogRetour\VMs
Export-VM -NameDC2 -path \BackupServer\myBackups\cogRetour\VMs
and so on
The 2nd statement waits until the 1st finishes, I am trying to find a solution where statements are fired one after the other so I can run several exports in parallel? Is it feasible in powershell?