Exchange 2013 import multiple pst’s

foreach ($i in (Get-Mailbox)) { New-MailboxImportRequest -Mailbox $i -FilePath “\\Server\share\$($i.Name).pst” -baditemlimit 50 -acceptlargedataloss ;while ((Get-MailboxImportRequest -mailbox $i | ? {$_.Status -eq “Queued” -or $_.Status -eq “InProgress”})) { sleep 120 } }