There really are lots of sites that explain how to do this in great detail.
A simple google search of:
"how to set an environment variable in windows"
gives pages and pages of hits.
Here is one with graphics ...
https://geekflare.com/system-environ...es-in-windows/
Perhaps we should make your post and this link an FAQ or Pinned Thread.