if($Name-and-not$HasWildCard){# torn between independent queries, or filtering users.list# submit a PR if this isn't performant enough or doesn't make sense.$Users=$RawUsers.members|Where{$Name-Contains$_.name}}elseif($Name-and$HasWildCard){$AllUsers=$RawUsers.members# allow like operator on each channel requested in the param, avoid dupes$UserHash=[ordered]@{}foreach($SlackUserin$AllUsers){foreach($Usernamein$Name){if($SlackUser.Name-like$Username-and-not$UserHash.Contains($SlackUser.id)){$UserHash.Add($SlackUser.Id,$SlackUser)}}}$Users=$UserHash.Values}else# nothing specified{$Users=$RawUsers.members}