Here’re two scripts “Move-Mailboxcsv, and New-DBFromXML” which’re used to solve real world customer requests and both of them will be used multiple times in their environment.
Move-Mailboxcsv: The customer scenario for this script was that the customer was regularly moving a wide range of mailboxes between servers and databases to support their mailbox organization structure and requests for additional mailbox quota etc. They had written their own script to read a csv file of mailboxes to move and then do the move using foreach with the move-mailbox cmdlet. Since they were piping the csv input directly into the foreach it was only operating on one mailbox at a time. This resulted in them losing the multi threaded nature of the move-mailbox cmdlet.