I don't know why Linux peeps like to make life so hard for themselves. There are at least two ways to run a script. As you say, you can add '#!/usr/bin... etc' at the front, then chmod it to make it executable and the run it with './scriptname'. Alternatively, create your script file, don't bother to add that funny first line, don't bother to chmod it then just run it with 'bash scriptname'.
Anyway, I added the semicolon at the end of the 'sleep' line and it's a bit better. At least it sleeps now!
Code:
[root@localhost asterisk]# cat wait.txt
sleep 10;
echo "Hello World"[root@localhost asterisk]# bash wait.txt
: command not found
Hello World
[root@localhost asterisk]#