If you just want to type the name of your script to run it there are some requirements for that:
1. The file must be executable.
2. The file must be in the $PATH. That means on most distros that you have to prefix the the name with ./ if you are in the same directory as the script.
3. The shebang must be correct. While
may work it is better to use