Enums were introduced to PowerShell in version 5.0 and can be used as a simple way to validate script and parameter input.