import re


def rule(event):
    if re.match(
        r"cmd.{0,5}(?:/c|/r)(?:\\s|)\"set\\s[a-zA-Z]{3,6}.*(?:\\{\\d\\}){1,}\\\\\"\\s+?-f(?:.*\\)){1,}.*\"",
        event.deep_get("ScriptBlockText", default=""),
    ):
        return True
    return False
