Restore Mailboxes back to O365 or Exchange.

Hi,

I need to restore many archived mailboxes back to O365 or Exchange.

Is there a way to automate this process?

Perhaps powershell or another tool?

Right now I need to search for the archived mailbox right-click and restore, at this rate it will take me a long time to get these mailboxes restored.

Thanks for your help!

Niels