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