I recommend you use the script with the shebang expression. Script may behave different depending on the shell you use. So if you wrote the script in bash you can instruct the OS to interpret the script withe the same shell. That ensure the script behave the same.