See the following article for the retirement dates. Are there plans to add cmdlets for SharePoint Rules? Are there any other PowerShell or JavaScript libraries that lets you create rules?
https://support.microsoft.com/en-us/office/sharepoint-alerts-retirement-813a90c7-3ff1-47a9-8a2f-152f48b2486f