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

(router password)
wait 10

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; (router password); reboot

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