PrivateFunctions/Validate-Version.ps1
Function Validate-Version { [OutputType([Bool])] [CmdletBinding()] Param( [Parameter(Mandatory=$True)] [ValidateNotNull()] [System.Version] $Version ) If ($Version.Major -ne 1) { Return $False } # This module supports version 1.8 - 1.9 for now. If ($Version.Minor -gt 9 -or $Version.Minor -lt 8) { Return $False } Return $True } |