Environment variables are global settings for your Linux, Mac, or Windows computer, stored for the system shell to use when executing commands. Many are set by default during installation or user creation.
For instance, your home directory is set as an environment variable when you log in. How it looks in PowerShell depends on your operating system.
On Windows:
read more