[CmdletBinding()] param ( [string] $Server ) . .\Variables.ps1 if($PSBoundParameters.ContainsKey("Server")){ Get-ADGroups -Server $Server -SearchBase $Projects } else { Get-ADGroups -SearchBase $Projects }