Chapter4/4.6_AdvancedFunctions/4.6.6_Validattion/ValidateRange.ps1

function Get-DirectorySize {
    [CmdletBinding()]
    param(
        [parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [Alias("Path", "PSPath")]
        [string[]]$LiteralPath,
    
        [parameter(ValueFromPipelineByPropertyName = $true)]
        [ValidateRange(1, 100)]
        [int]$OverSize
    )
}