Many years later, but thanks for the quick tip.
just fyi if someone meets this later as i did
In my case, I don't want the explorer to restart automatically, because I want to reload the profile using:
Start-Process -ProcessName explorer -LoadUserProfile
OR load a new set of environment variables
Start-Process -ProcessName explorer -UseNewEnvironment
Greetings
mreinsmith
source share