I have a script I found doing a search to lookup a folder in a powershell form but I cannot get it to access the folders I want and I am not sure what I am doing wrong.
$newShell = new-object -com shell.application
$objFolder = $newShell.NameSpace("MyMusic")
$namedfolder = $newShell.BrowseForFolder(0,"Select Song files destination folder:",0,5)
write-host $namedfolder.self.path
No matter what I put in the .NameSpace"(MyMusic") portion the dialog opens to my Documents folder.
What am I not understanding about this function/script?