In traditional cmd, we can use cd %programfiles%
to switch directory, usually C:Program Files
.
In PowerShell, how can we go to a directory by a environment variable?
question from:https://stackoverflow.com/questions/20138054/equivalent-of-cd-programfiles-in-powershell