At first navigate to Atom shortcut icon and go to properties there you have to copy the start in address. And after that go to system advanced settings by clicking the This Pc properties or by (win + r) and click environment variables. navigate to the path section and edit the path with the copied address. Boom. Restart your terminal and then see the magic. Check that Images you will get an Idea.
enter image description here