def rule(event):
    if all(
        [
            "shell\\open\\command\\" in event.deep_get("TargetObject", default=""),
            "powershell" in event.deep_get("Details", default=""),
            "-command" in event.deep_get("Details", default=""),
        ]
    ):
        return True
    return False
