Is anyone aware of a way to report an error or a failure to ZCM from the script from an Imaging Script Action?

For example, I have the following code inside an Imaging Script action of a image bundle. What should I add to line 4 of the following script to make ZCM aware of an error?

1: wget "$URL/guid=$ZISD_WORK_GUID/mac=$SMBIOS_MAC" /tmp/zen.out
2: if [ ! -r /tmp/zen.out ] ; then \
3:   echo "Oh no, the file is not there!"
5:   exit 1
6: fi
Thanks for your inputs!