The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi Mamadou,
After reviewing your description, it seems the issue is related more to the Power Automate Run script action establishing a connection to the Excel workbook rather than an error within the Office Script itself.
Since your question is focused more on Power Automate flow execution and Excel Online connection behavior, you may also find it helpful to seek additional guidance from the Power Platform Community as the specialists and community members there have deeper expertise with these types of scenarios.
I apologize for redirecting you to a different community. The members of this category primarily focus on Microsoft 365 and Office applications and may have limited knowledge of Power Automate-specific troubleshooting. To help you receive more targeted assistance, I am guiding you to the community best suited for this type of issue.
I hope this provides some helpful context. Thank you for your understanding.