So it seems that script files do not support for-loops and if-statements right?
Check out the startup-sequence... see if there's an If in there.
For has also been implemented by third parties in a number of instances, but not in the standard Workbench/CLI/Shell iirc.