for example change GOPATH for current CMD session with set and use setx to set permanently
set GOPATH=C:\Projects\mediasync\go
References
https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt
https://ss64.com/nt/set.html
https://ss64.com/nt/setx.html