Hello there,
You can use a task scheduler or Powersutomate to automate your tasks once you have done with your Powershell script.
Some useful article links that might throw some insights are listed below
PowerShell - Managing an Outlook Mailbox with PowerShell https://learn.microsoft.com/en-us/archive/msdn-magazine/2013/march/powershell-managing-an-outlook-mailbox-with-powershell
Mail flow rules (transport rules) in Exchange Online https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/mail-flow-rules
New-InboxRule https://learn.microsoft.com/en-us/powershell/module/exchange/new-inboxrule?view=exchange-ps
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–