set and save an environment variable from command prompt OR PowerShell

from an admin command prompt or PowerShell:

setx GYP_MSVS_VERSION 2015 /M

Comments