If you want custom Bash, NodeJS, PHP or any other script available as global bash commands you need to add them to the $PATH
environment variable.
- Create a new directory in your user's home directory that will contain global apps
- Install those apps to that directory and make them executable by the current user
- Add the directory to system's
$PATH