I have a problem running my script from export IMGCMD="/addfiles/bin/myscript1.s" in my settings on my ZCM 10.2

the myscript1.s script includes the following:
#!/bin/bash

#mount DVD drive
/bin/cdrom.s
#clear image safe data
zisedit -r
#clear partitions
img pd1
img pd2
img pd3
img pd4

#load base image & addon images
img -rl /mnt/cdrom/d51x97.zmg

Echo "BuildComplete"

reboot -f