def rule(event):
    if any(
        [
            all(
                [
                    "type " in event.deep_get("CommandLine", default=""),
                    " > \\\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "type \\\\" in event.deep_get("CommandLine", default=""),
                    " > " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
