In reference to this KB article (https://knowledgebase.progress.com/articles/Article/how-to-programmatically-launch-a-reindex), I have added the code to our Bootstrapper_Bootstrapped event (I have also tried the Bootstrapper_Initialized event), however when the code executes I get a authorization error.
I have also wrapped the code to bypass security checks (https://knowledgebase.progress.com/articles/Article/How-to-create-users-bypassing-permission-checks) and to no avail, still the same error as above.