def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    event.deep_get("Image", default="").endswith("\\cscript.exe"),
                    event.deep_get("Image", default="").endswith("\\powershell.exe"),
                    event.deep_get("Image", default="").endswith("\\powershell_ise.exe"),
                    event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                    event.deep_get("Image", default="").endswith("\\wscript.exe"),
                ]
            ),
            event.deep_get("OriginalFileName", default="")
            in [
                "Cmd.EXE",
                "cscript.exe",
                "PowerShell.EXE",
                "PowerShell_ISE.EXE",
                "pwsh.dll",
                "wscript.exe",
            ],
            any(
                [
                    "ˣ" in event.deep_get("CommandLine", default=""),
                    "˪" in event.deep_get("CommandLine", default=""),
                    "ˢ" in event.deep_get("CommandLine", default=""),
                    "∕" in event.deep_get("CommandLine", default=""),
                    "⁄" in event.deep_get("CommandLine", default=""),
                    "―" in event.deep_get("CommandLine", default=""),
                    "—" in event.deep_get("CommandLine", default=""),
                    " " in event.deep_get("CommandLine", default=""),
                    "¯" in event.deep_get("CommandLine", default=""),
                    "®" in event.deep_get("CommandLine", default=""),
                    "¶" in event.deep_get("CommandLine", default=""),
                    "⠀" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
