function Test-IsTrue { [CmdletBinding()] param ( $Value ) if ($Value -is [string] -or $Value -is [int] -or $Value -is [bool]) { return ('true',1,$true -contains $Value) } return $false } Set-Alias -Name IsTrue -Value Test-IsTrue