Add DEBIAN_CDIMAGE env var and ISO_FILE var.
Use ISO_FILE var.
Replace backticks with  and use &1 for redirection.
Stop if VM is running and make sure to unregister the VM before all the files are deleted.