I have a common command that gets called from within very specific directories. There is only one executable sitting in /bin for this program, and the current working directory is very important for running it correctly. The script affects the files that live inside the directory it is run within.
Now, I also have a custom shell script that does some things in one directory, but I need to call that command mentioned above as if it was in another directory.
How do you do this in a shell script?