You probably realise this, but in case not- the command you want to
add can be added in the same way as described below after you have
saved the string as a script with something like #!bin/bash as the
first line then the command on the second. Then of course chmod to
executable.