CmdID / PowerShell / Cmdlets / Set
Set-ServicePrincipal
Use the Set-ServicePrincipal cmdlet to change service principals in your cloud-based organization. Exchange PowerShell reference
From the Exchange PowerShell reference 5 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the service principal that you want to modify.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DisplayNameThe DisplayName parameter specifies the friendly name of the service principal.-OverrideEnforceExoAppRbacPermissions-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.