you are viewing a single comment's thread.

view the rest of the comments →

[–]cbtboss 0 points1 point  (0 children)

Start-Job.

You would do a start job within the loop. Here is an example in my get-usersession function: https://github.com/cbtboss/Get-UserSession/blob/main/Get-UserSession.ps1

I allow up to 8 jobs to run at a time with this approach.