Powershell does not interpret set variables
Powershell has (optionally) replaced cmd as a standard shell in Windows 10.
However it is a pity that Powershell is not able to interpret commands that rely on usage of variables that are defined in "set"
like %computername%, %windir%, %userprofile%, %appdata% etc
Please respect your own system variables in use for decades Microsoft. Thank you a lot.
There must be way without breaking this.
try issuing a simple
in powershell (often used in KB articles), good luck and have fun (or not).
Imho while I could understand limitations this is pretty odd.