# Parameter help description [CmdletBinding()] param ( [string] $Name, [string] $Server ) if($PSBoundParameters.ContainsKey('Name')){ $Roles=$null if($PSBoundParameters.ContainsKey('Server')){ $Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -eq $Name } else { $Roles = . .\GetRoles.ps1 | Where-Object Name -eq $Name } return $Roles | Get-ADGroupMember | Get-Unique } throw "No such Project was found"