fast help:
I think the script explains it self, but there seems to be an error in this line
"?(!alive _x):[_x] exec {delbody.sqs} foreach _eunit
should propably be
"?(!alive _x):[_x] exec {delbody.sqs}" foreach _eunit
or
?(!alive _x):[_x] exec {delbody.sqs} foreach _eunit
or
?(!alive _x):"[_x] exec {delbody.sqs}" foreach _eunit
if that won't work, give us the error message and we know more how to fix it.