This script demonstrates how to get inbox rules in Office 365 Exchange Online. You can get inbox rules for multiple rules with this script.
Currently, you can easily create inbox rules in Outlook Web App (OWA). But after creating multiple inbox rules, you find it is difficult for troubleshooting if something goes wrong. So you want to find a script to document the details of a rule.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery