PowerShell - Scripting Best Practices
What will happen if you run this script with
-Age 150?
function Check-Age {
param(
[ValidateRange(0,120)]
[int]$Age
)
Write-Output "Age is $Age"
}
Check-Age -Age 150