I run quite a few scripts with Zenworks 7. I am trying to get some working in ZCM 10.2.2.

A technique I used in Zenworks 7 was to put a pause command at the end of the script. This would keep the script open indefinitely while I would browse to the %temp% folder and locate the script it was trying to run. I could then copy the script and test it to make sure Zenworks rendered variables correctly.

Does anybody know if there is a similar technique for ZCM 10?
If you run scripts with ZCM, how do you troubleshoot them?