Uh. @DavidPostill, about your
answer... "In any case it is better to use wmic OS get OSArchitecture to get the OS bitness. Remember you could be running Windows 32 on a 64 bit processor." => pretty sure the env var is actually the OS bitness, not the CPU?