Powershell Create Function With Multiple Conditions Sql W3schools