Running set of SQL agent jobs in parallel?


I am able to run a sqlagent job from powershell. Can anyone suggest me how to run multiple sql jobs in parallel and wait for the set to get complete. Once all jobs in first set completes, next set of sql jobs should start.

Lets say..

Set1 = Job1.1, Job1.2, Job1.3

Set2 = Job2.1, Job2.2

Set 3 = Job3.1, Job 3.2, Job 3.3, Job 3.4

My PS should start all jobs {Job1.1, Job1.2, Job1.3} in parallel, wait for all jobs to complete. If any of them failed, Rerun them.. and wait for completion...

Next, Set 2 will be started..