I think Application Insights is suitable for both reporting and sending emails. You can do the same with Log Snalytics, but the difference is that Log Analytics is basically a logical repository of all your log data, and you can create your own reports, alerts, etc. For many different services, you can also easily visualize all OMS.
As the comments say, you need to describe a little more about the script.
source share