Chapter4/4.3_BasicScripting/Where-DirectorySize2.ps1

#!/usr/bin/env pwsh

param(
    [scriptblock]$Condition
)
process {
    if ($Condition.Invoke()) {
        Write-Output $_        
    }
}