Hi @Kim Ryan,
When you switch My Sites Cleanup accounts in the SharePoint Online Admin Center, the old accounts do not remain as secondary owner or secondary admin. The new account specified as the secondary owner will be appointed as the owner of the OneDrive if the user's manager isn't set in Microsoft Entra ID. Email notifications will also be sent to the secondary owner account when the value is populated. Therefore, there is no need to run a PowerShell script to remove the old accounts.
Reference:
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.