Microsoft's legacy Remote PowerShell protocol in the Security and Compliance PowerShell module will begin to be deprecated soon, starting from July 15, 2023 as a part of modernisation efforts.
Microsoft has accelerated its Remote PowerShell for Exchange Online deprecation plans a bit for new tenancies, with plans to block its use on April 1, 2023, according to a Tuesday announcement.