Chapter4/4.6_AdvancedFunctions/4.6.6_Validattion/ValidateNotNullOrEmpty.ps1

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