If you want to export all mailboxes in Exchange 2010 to PST then you can do this with one command :
foreach ($AllMailboxes in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $AllMailboxes -FilePath "\\SERVERNAME\SHARENAME\$($AllMailboxes.Alias).pst" }
It will take ages……………..