@Bombbe ,
Thanks for reaching out to Q&A.
Powershell durable functions would suit your requirement. Please go through the Orchestrator, sub-orchestrator and activity functions explained below. Also choose the appropriate function pattern.
Powershell durable function : https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-powershell-vscode
Durable function types : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-types-features-overview
Durable function patterns : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#application-patterns
I hope this helps!
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.