Get-ADOptionalFeature: inventory adoptional feature with before-and-after evidence
Microsoft states: “The Get-ADOptionalFeature cmdlet gets an optional feature or performs a search to retrieve multiple optional features from an Active Directory.”
Read the guide