I doubt the solution you have in mind is possible.
Instead, I would modify the script, so the first thing it does is find out where all these hundreds of executables are located. Then either set $PATH accordingly, or call each one in its full path.
Or you may have an installer that installs executables in a location specified or selected by the user, and then re-creates the script (from the input file) so that it knows where the executables are located. Ship with the-script.in , then ask the installer to perform textual substitutions to generate the-script from the-script.in .
source share