As discussed, please add a dollar sign $ to the beginning of each line that is supposed to be run in a shell.