Hi,
In Exchange 2007, we use Managed Folders feature to control the message retention period. In Exchange 2010, retention policy and retention tag was introduced. But, Managed folders, the MRM technology introduced in Exchange 2007, is still available in Exchange
2010. In exchange 2013, Managed Folders are not supported, though you would see commandlets available for Managed Folders.
Inbox Rule could be an option to move message. If you are looking for some EWS scripts to move messages, I suggest to post it on development forum.
https://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
This document for reference.
https://msdn.microsoft.com/en-us/library/office/dn600291(v=exchg.150).aspx
Best Regards.