Maybe with the
I've not tried it as I'm running Windows atm, but looks like it should work. You can
chmod the file if you have permission to do so.
var output = 
var exit_code = OS.execute("chmod", ["+x", "./filetochmod"], true, output)
I've just tested this on Ubuntu 20.04 and this worked:
OS.execute("chmod", ["+x", "/tmp/d.sh"], true)