This script demonstrates how to move multiple email messages to a specific folder in Office 365 Exchange Online. You can use this script to search email messages that meet specified search criteria and then move these email messages to a specific folder.
Currently, you have limitations when moving multiple email messages by using Outlook Web App (OWA). Although, you may already set up inbox rules to manage your email messages, but you still find you need a script to move multiple email messages in a regular manner.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery