def rule(event):
    if all(
        [
            any(
                [
                    "iex " in event.deep_get("CommandLine", default=""),
                    "Invoke-Expression " in event.deep_get("CommandLine", default=""),
                    "Invoke-Command " in event.deep_get("CommandLine", default=""),
                    "icm " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "cat " in event.deep_get("CommandLine", default=""),
                    "get-content " in event.deep_get("CommandLine", default=""),
                    "type " in event.deep_get("CommandLine", default=""),
                ]
            ),
            " -raw" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
