def rule(event):
    if all(
        [
            any(
                [
                    "Get-WmiObject " in event.deep_get("ScriptBlockText", default=""),
                    "gwmi " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            " Win32_Service " in event.deep_get("ScriptBlockText", default=""),
            "Name" in event.deep_get("ScriptBlockText", default=""),
            "DisplayName" in event.deep_get("ScriptBlockText", default=""),
            "PathName" in event.deep_get("ScriptBlockText", default=""),
            "StartMode" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
