Bash Script Execute Command In Different Ways