How to update automatically AD passwords for UiPath Orchestrator robot credentials?

Ho to update automatically AD passwords for UiPath Orchestrator robot credentials?

Even is UiPath strongly does not recommend to run in production a script that handles robot administration from security and safe perspective/ concerns, this can be done the following ways: