Hello,
Thank you for clarifying. yes, it is possible. You will need to update the value of the -Filter parameter in the following line of the script:
$aDObject = Get-AdmObject -Filter {(Name -eq $value) -or (DisplayName -eq $value) -or (distinguishedName -eq $value)} `
-AdaxesService localhost -ErrorAction SilentlyContinue -Server $domainName
For example, in case you want to use the Employee ID to find Managers, the line should be as follows:
$aDObject = Get-AdmObject -Filter {(employeeId -eq $value)} `
-AdaxesService localhost -ErrorAction SilentlyContinue -Server $domainName