Dear Abigail Watt,
Good day! Thank you for posting to the Microsoft Community.
This forum primarily focuses on Microsoft 365 and Office built-in features.
Since your issue is related to the utilization of a Power Automate script and our forum has limited knowledge on this topic, I sincerely recommend posting your concern to the specific channel. Microsoft Power Platform Community by clicking on Post a question.
Members and engineers over there are proficient in the knowledge of Power Automate issues. We are sure that our experts from that team can address your query effectively and accurately.
Thanks for your understanding and cooperation! Hope you have a nice day!
Sincerely,
Ralph Chawatama | Microsoft Community Moderator