Here are suggestions from Exchange side:
For Exchange on-premises, if you want to use REST API, you need to hybrid it with Exchange online first. Please note, REST API for On-Premises will end in March 2023.
If you don't want to use Remote PowerShell manage Exchange server, you could use EWS service to manage Exchange on-premises if your application supported this one.
Due to the EWS related to Exchange development, I will help you add the "office-exchange-server-dev" tag to this thread.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.