powershell function dynamic validateset