For windows shell script, sometime we dynamically update our environment variable to multiple values at given instance. There are instances that the env variable doesn't seem to store the the given variable name properly, to resolve this use the following command:
setlocal enabledelayedexpansion