Invoke developer command prompt from Windows start button
as a test : use setx to connect an environment variable with a value e.g.
setx PICO_SDK_PATH C:\Users\Shed\Pico\pico-sdk
then open a second dev command prompt and in this case display all env variables starting with 'pico' by entering the command : set pico
the display should prove that the environment variable was set.