Yes, it is possible. For us to update the script accordingly, please, specify whether cloud-only objects also should be added to the report. If so, they can only be added as custom objects without any properties except for the name one.
Also, if you have lots of mailboxes, the script will not work. There is a limitation in Exchange Online (they do not disclose the actual number) for requests and if it is exceeded the session gets closed. Unfortunately, there is no workaround for this behavior.