PATH gets set read-only and can not be overridden within a script. WHY WOULD YOU DO THIS???
Even if you use the "Override $PATH" option in the configuration options, "/data/data/os.tools.scriptmanagerpro/bin/" gets appended to PATH if you want it or not. I don't know of any way to remove this from PATH. STOP DOING THIS.