def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("OriginalFileName", default="") == "diskshadow.exe",
                    event.deep_get("Image", default="").endswith("\\diskshadow.exe"),
                ]
            ),
            any(
                [
                    "-s " in event.deep_get("CommandLine", default=""),
                    "/s " in event.deep_get("CommandLine", default=""),
                    "–s " in event.deep_get("CommandLine", default=""),
                    "—s " in event.deep_get("CommandLine", default=""),
                    "―s " in event.deep_get("CommandLine", default=""),
                ]
            ),
            not ".txt" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
