Stop-Process -Name explorer -Force; Start-Process explorer.exe
Added a new folder to your system but your terminal doesn't recognize it yet? You can refresh environment variables by restarting the shell or using PowerShell to cycle the explorer process. refresh command windows
When the taskbar is unresponsive or File Explorer is lagging, the best "refresh" is a full restart of the explorer.exe process. Stop-Process -Name explorer -Force; Start-Process explorer
Opening a new command prompt window will also refresh the variables, as cmd.exe loads them at startup. 3. Refreshing Group Policies (GPUpdate) Stop-Process -Name explorer -Force