def rule(event):
    if all(
        [
            event.deep_get("OriginalFileName", default="")
            in ["Cmd.Exe", "powershell_ise.EXE", "powershell.exe"],
            event.deep_get("Image", default="").endswith("\\wermgr.exe"),
        ]
    ):
        return True
    return False
