I'm writing a PS script to update them to be searchable and to add aliases, and the task is taking a while. I need to find the managed properties that exist without manually searching for them or trying to figure out all the conversion logic (e.g., replacing all special characters, adding OWSTEXT text columns or OWSDATE for date columns, etc.).
I was wondering this could be automated with some C# or JavaScript code.