Hi,
the approach, which you can follow is the same as in PowerShell parallel workflows. Here you can find details and also great examples:
PowerShell Time Sync: Error Handling in Parallel in Workflows
I hope I was able to help.
(If the reply was helpful please don't forget to upvote or accept as answer, thank you)
Regards,
Stoyan