删除指定路径下所有层级的 #特定文件夹powershell运行
$targetPath = "目标文件夹的完整路径"
Get-ChildItem -Path $targetPath -Recurse -Directory | Where-Object { $_.Name -eq "metadata" } | ForEach-Object {
Remove-Item -Path $_.FullName -Recurse -Force
Write-Host "Deleted: $($_.FullName)"
}