The script is available for download from http://gallery.technet.microsoft.com/Save-email-messages-in-the-e91ac979. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This script demonstrates how to save email messages in the default Drafts folder of a shared mailbox in Office 365 Exchange Online.
Currently, Microsoft Office 365 Exchange Online allows you to create a shared mailbox. A shared mailbox allows a group of users to view and send e-mail from a common mailbox. But the email messages sent by these users on behalf of the shared mailbox actually appear in their Sent Items folder by default. You may want to use a script to save email messages in the default Draft folder of shared mailbox. Then you can send these email messages later and these email messages can be viewed by these uses.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery