That's pretty vague...
Code:
#!/bin/bash
cd /path/to/whatever
/path/to/command
If the command is in that directory, you could do it all with one full swoop
/path/to/command
Will execute the command if the script is executable and the executioner of the script has privileges to do so.
Cool