I know mobile terminal has the option to create shortcuts so you don't have to type the command, but instead just tap on them.
Is there a better method than shortcuts?
What I want is a script that will do

su
alpine
ssh 192.168.1.1
(router password)
wait 10
reboot
exit

I want this so I just have to run the script and then it reboots my router for me.
I googled how to run multiple commands, and someone said use ;
So I tried making a shortcut to do

su; alpine; ssh 192.168.1.1; (router password); reboot

But it just stops on su.
Can I make a script or shortcut to run all of this in one operation?