def rule(event):
    if all(
        [
            "-Alias" in event.deep_get("ScriptBlockText", default=""),
            " -Value (-join(" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
