This function is the standard exit function. This function deletes any work files and passes the return code back to om.
USAGE:
ExitScript( $RC, @doomedFiles )
You must pass the return code and the list of files to delete.