There look to be 2 ways forward with this. 1. Async functions to deploy multiple VMs at once 2. Foreach-Object -Parallel. This requires upgrading to Powershell 7 Both options will require almost a full re-write.
There look to be 2 ways forward with this.
Both options will require almost a full re-write.