I have to use/reference an environment variable value which will be passed as a command line argument. Something like below
set myvar=%1
echo Value of %myvar% is %%myvar%%
Here in %%myvar%%
I want to reference the value of that environment varible
A typical call to this script will be
script.bat JAVA_HOME