This script can retrieve message delivery report in Microsoft Office 365 Exchange Online. Additionally, you can use this script to establish a connection without using additional commands.
Currently, you find you can use Search-MessageTrackingReport and Get-MessageTrackingReport to get message delivery report. But when you are processing the results, you find it requires advanced scripting skills. So you want to find an existing script that can meet your request.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery