How would you write a PowerShell script with error handling and logging for bulk mailbox changes at Ankix?