Hello!  I'm super new to tinycore, so I'm sorry if these questions are silly or can be found somewhere else.
I'm remastering the corepure64 iso.  I'm adding a couple of extensions that were made from rpms.  Once I mount the iso, I need to install and run one of the extensions that I added and run a couple of commands unsupervised.
I'm running into some issues, the first being accessing the extensions.  I found that I had to mount /mnt/sr0 to access the cde directory.  I figured I would include that in the script but I'm not quite sure if there is an easier way.
Once I mount /mnt/sr0, I need to install the extensions and run the extensions.  I came up with a script that is similar to this (hpacucli is an extensions that I included):
sudo mount /mnt/sr0
cd /mnt/sr0/cde/optional
tce-load -i *.tcz
sudo hpacucli <commands>
I cannot figure out where to put this script.  Once I mount the iso, I need it to run by itself.  
Any advice would be appreciated!