I keep the above (reply_8) allservers.sh script in the /home/handy/data/scripts/ directory which was not in the systems search path. So when running the script as root, instead of having to type in that long path, I modified the /etc/profile path line, adding my path to the end of it like so:
# Set our default path
This effects the root path, it is not normally somewhere we would need to modify.
It is far more common for someone to want to modify the path for a single user account which is done via that user's ~/.bash_profile file like so:
Some distros may vary from this, which is worth remembering.