Don't have Telegram yet? Try it now!
https://sqldbawithabeard.com/2017/04/26/powershell-function-validating-a-parameter-depending-on-a-previous-parameter/
PowerShell Function - Validating a Parameter Depending On A Previous Parameter's Value