You need to make sure the very first line contains the she-bang and the path to your intepreter. Most likely, this is what you'll want:
Make that the very first line of the script, then make it executable and run it.
That #! is called a she-bang, and the /bin/bash is the path to bash, the intepreter.