Hello @rudiaz ,
Just to make sure I understand the situation correctly - I assume the Power Automate run history says the Run script action has finished successfully, right? Then how did you know the script actually hasn't run? Was it because the workbook didn't reflect the changes made by your script code?
To troubleshoot the problem, you can try adding some console.log("...") statements throughout your script so you can tell how your script runs based on the logs. You can go to the Power Automate run history, expand the Run script action, and look into the Outputs box for the logs.