# 找資料夾
Where-Object {$_.PsIsContainer -eq $true}
# 找檔案
Where-Object {$_.PsIsContainer -eq $false}
# 找檔案數 = n
Where-Object {$_.GetFiles().Count -eq n}
# 找資料夾數 = n
Where-Object {$_.GetDirectories().Count -eq n}
# 找資料夾
Where-Object {$_.PsIsContainer -eq $true}
# 找檔案
Where-Object {$_.PsIsContainer -eq $false}
# 找檔案數 = n
Where-Object {$_.GetFiles().Count -eq n}
# 找資料夾數 = n
Where-Object {$_.GetDirectories().Count -eq n}