def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\appcmd.exe"),
                    event.deep_get("OriginalFileName", default="") == "appcmd.exe",
                ]
            ),
            "install" in event.deep_get("CommandLine", default=""),
            "module" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "-name:" in event.deep_get("CommandLine", default=""),
                    "/name:" in event.deep_get("CommandLine", default=""),
                    "–name:" in event.deep_get("CommandLine", default=""),
                    "—name:" in event.deep_get("CommandLine", default=""),
                    "―name:" in event.deep_get("CommandLine", default=""),
                ]
            ),
            not event.deep_get("ParentImage", default="")
            == "C:\\Windows\\System32\\inetsrv\\iissetup.exe",
        ]
    ):
        return True
    return False
