Key Windows Server 2012 R2

nice solution for switching versions, i was trying to merge all the version scripts in one bat file but and added a if else statement i am not able to run that bat file by default in my command prompt. Any idea