Chapter4/4.3_BasicScripting/Get-DirectorySize.ps1

#!/usr/bin/env pwsh

param(
    [string]$LiteralPath = "./"
)
Get-ChildItem -LiteralPath $LiteralPath -Recurse -Force -File |
    Measure-Object -Sum Length |
    ForEach-Object Sum