Bash Script Execute Command In Different Capacities