I'm attempting to use the following command in an "Run Script" step in a bundle, as a "define your own script". I'm using ".bat" as the script file extension.

for /r s:\ %%x in (repair-update.*) do start %%x

Double "%" used because it is a batch. Runs properly as a batch file saved on a target PC using double "%". Also runs properly from the command line on a target PC using single "%".

Fails in the bundle with error "x was unexpected at this time". I read somewhere that triple "%" might be needed in a ZCC bundle but I've tried all the possible combinations of double-triple, triple double, triple-triple, etc. with no luck.

Any idea why this is failing? Thanks.