Don't have Telegram yet? Try it now!
https://sqldbawithabeard.com/2013/09/08/alter-sql-mirroring-endpoint-owner-with-powershell/
Alter SQL Mirroring Endpoint Owner with Powershell