def command_with_vcvars(generator, folder, command):
    vc_var_all = _get_vcvarsall(generator)
    tmpbatname = os.path.join(folder, "vcvars_command.bat")
    with open(tmpbatname, 'w') as tmpbat:
        tmpbat.write('call "%s"\n' % vc_var_all)
        tmpbat.write('call ' + command)
    return tmpbatname
wraps a command into a windows .bat file that first declares environment
dataset/ETHPy150Open biicode/client/setups/finders/msvc_finder.py/command_with_vcvars