, if we want to include an enum type like releaseCountry in the fields, then its field path in the index construction can be specified asreleaseCountry._name. Note, in field paths, an enum type is treated slightly differently from a String reference type which is expanded using.value....
While PowerShell does it’s best to present it as a readable string to us in the console, an enum is actually a data structure of its own. If you’re interested in reading more about them I wrote a post onclasses and enums in PowerShell. We can however combineAsHashTablewith another...