Hi @kanupriya,
Kindly note that here in Microsoft Q&A Exchange forums we mainly focus on general usage issues and do not support scripting.
If it is possible, please consider contacting the script author or post in other scripting forums like creating an issue in the Github page for better support.
Thanks for your understanding.
somehow report is not coming in HTML format
Based on my test, the script in the link in your main post is working fine on Exchange 2016 CU23.
If you are using this cmdlet and did not receive the email:
.\Test-ExchangeServerHealth.ps1 -ReportMode -SendEmail
Please make sure you have modified the mailbox to receive the report and the SMTP server to be your Exchange server.
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.