Environment variables are really nice timesaver feature in Windows. As a quick reminder:
There is a special variable named ‘Path’; you can write paths to the folders that contain some files, for example:
C:\ProgramData\chocolatey\bin;C:\Users\dv\AppData\Local\Code\bin;c:\cshell\cshell.exe;C:\tools\cygwin;C:\Users\dv\AppData\Local\atom\bin;C:\Program Files (x86)\Lua\5.1\;C:\Program Files (x86)\PuTTY\;
After that i can run Lua with just a command: CMD-> lua.
Notice: after setting the variable its value will be avaliable in console just after the console restart!
More on the subject: