Set persistent environment variables. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/setx.
setx {{variable}} {{value}}
setx {{variable}} {{value}} /M
setx /s {{hostname}} /u {{username}} /p {{password}} {{variable}} {{value}}
setx {{variable}} /k {{registry\key\path}}