Perhaps to better understand what the script is doing... use the -s switch with /set and /inc. The -s switch enables verbose display of variables.

/inc -s %varaible
/set -s %varaible [value]