I forgot to mention that you need to make the shell script executable. After you create and save it and before you run it the first time, enter this command at the prompt:
chmod a+x verizonrouterreboot.sh
You may need to do the same for the expect script. Anyway, it won't hurt:
chmod a+x verizonrouterreboot.expect