Hi @MorganAdam-0661 ,
Thanks for reaching out to Q&A forum.
If your function is timing out after 50 seconds, you can increase the timeout value by specifying it in the host.json file.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout
If you want the powershell script to pause/wait for certain amount of time so that certain commands can complete its operation, then you can use the "Start-Sleep" command to suspend the activity in a script or session for the specified period of time.
Hope this helps! Feel free to reach out to me if you have any questions or concerns.