# Parameter help description [CmdletBinding()] param ( [string] $Name ) if($PSBoundParameters.ContainsKey('Name')){ . .\Variables.ps1 $Read='GR-'+$Name+'-RO' $Write='GR-'+$Name+'-RW' Write-Host $Read+$Roles Write-Host $Write+$Roles $ReadUsers=Get-ADGroupMember -Recursive -Identity $Read $WriteUsers Return $null } throw "No such Project was found"