I'm getting orphaned command windows after a bundle deployment. Details shown here.

I've narrowed it down to a script - all it's doing is:
@echo %DATE% %TIME% ENH Deploy Install - Bump 3 - %UserName%>> C:\ENH\LOGS\ZDMBundleActivity.log

This never gets executed. Process Explorer shows the command line being called is:
cmd /c ""C:\Users\BKeadle\AppData\Local\Temp\iga1ndby.1or \zen_executeRunscript_5604_634668186366855000.bat" "

I'm not sure if the double-quotes is what's throwing it off. The contents of that file are:
echo "C:\Users\BKeadle\AppData\Local\Temp\iga1ndby.1or\zen_executeRunscript_5604_634668186366698750.bat" | cmd
rmdir /S /Q "C:\Users\BKeadle\AppData\Local\Temp\iga1ndby.1or" 2>NUL & exit
which doesn't make much sense to me, what it's trying to do. The "| cmd" is probably what's causing the orphaned command prompt.