def rule(event):
    if all(
        [
            any(
                [
                    ".doc" in event.deep_get("ScriptBlockText", default=""),
                    ".docx" in event.deep_get("ScriptBlockText", default=""),
                    ".xls" in event.deep_get("ScriptBlockText", default=""),
                    ".xlsx" in event.deep_get("ScriptBlockText", default=""),
                    ".ppt" in event.deep_get("ScriptBlockText", default=""),
                    ".pptx" in event.deep_get("ScriptBlockText", default=""),
                    ".rtf" in event.deep_get("ScriptBlockText", default=""),
                    ".pdf" in event.deep_get("ScriptBlockText", default=""),
                    ".txt" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            "Get-ChildItem" in event.deep_get("ScriptBlockText", default=""),
            " -Recurse " in event.deep_get("ScriptBlockText", default=""),
            " -Include " in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
