Hey @Braulio,
It is really nice of you sharing the script with us, I tried to run the script but it didn't work as expected, I check the logs and not further messages besides script started and script ended were provided. Anyways, the script should be created at "User Scripts >> Add New Script" or under the ext device, at Main menu, then "Settings" of the ext drive, then "Device Script"?