Sorry for the delay, I’ve been caught up with some things.
I was finally able to access the controller and execute the script without problems, I reckon that the problem is when you transfer the file directly with WinSCP or something like it because what I do is create a SH file and then copy an paste the code I previously shared.
After doing so I execute the script with the id of the scene.