setx VAR1 "hello world"
Use chocolately helper function.
RefreshEnv
Testing if we can read this.
echo %VAR1%
Get all variables.
SET
Read directly from registry
REG query HKCU\Environment
Helper for deleting variable.
REG delete HKCU\Environment /F /V VAR0
Useful resources: https://stackoverflow.com/questions/13222724/command-line-to-remove-an-environment-variable-from-the-os-level-configuration