when i try your script i got some error with this line
$u=gwmi Win32_Volume|?{$_.Label -eq'@'}|select name;cd $u.name
the error says
cd : Cannot process argument because the value of argument "path" is null. Change the value of argument "path" to a
non-null value.
At line:1 char:53
+ $u=gwmi Win32_Volume|?{$_.Label -eq'@'}|select name;cd $u.name
+ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Location], PSArgumentNullException
+ FullyQualifiedErrorId : ArgumentNull,Microsoft.PowerShell.Commands.SetLocationCommand
i don't know what's wrong.. i'm running win10pro, but the path got me error... can you tell me what's wrong?