I've created a cloud power automate flow to listen for a new Excel file in a OneDrive folder, wait 10 seconds, run an Excel Office Script, wait 10 seconds, then upload the file to an FTP. Please see the flow here:

When a new file is uploaded to OneDrive, the flow runs without error:

Unfortunately, the Office Script did NOT run. I can, however, open the Excel file from OneDrive in a browser, choose the Automate tab, and then run the Office Script and it DOES run from within Excel Online. It just doesn't run when I try to run the script from Power Automate. What am I doing wrong? Thanks!