Is there tested PowerShell code available online that performs user input validation for a variety of needs (numeric, numeric in a range, alphanumeric, alphanumeric withing certain size limitations, etc) ?
Of course, more complex validations would be useful too (valid IP address, valid filename, valid URL, etc).