You can add the RunAsync switch on the New-Snapshot cmdlet.
That way the cmdlet will return immediately and your script will continue with the next line.
Just make sure not to overload your environment by running too many snapshots in parallel.
You can add the RunAsync switch on the New-Snapshot cmdlet.
That way the cmdlet will return immediately and your script will continue with the next line.
Just make sure not to overload your environment by running too many snapshots in parallel.