Same folder name can reside on different branches of an inventory tree structure. To ensure working
on the right folder, I normally find out where they are different, then get to it by:
$targetFolder = get-folder -name <my desired folder name> | where {$_.parent.name -eq "xxx" -and $_.parent.parent.name -eq "yyy" -and ...}