In general just provide the full path the command / file you want to use in your script or on the command line.
For example in a bash script:
Code:
#!/bin/bash
echo "This is the shell builtin"
/bin/echo "This is /bin/echo"
/usr/local/bin/echo "And this is from /usr/local/bin/echo"