def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\powershell.exe"),
            any(
                [
                    " -version 2 " in event.deep_get("CommandLine", default=""),
                    " -versio 2 " in event.deep_get("CommandLine", default=""),
                    " -versi 2 " in event.deep_get("CommandLine", default=""),
                    " -vers 2 " in event.deep_get("CommandLine", default=""),
                    " -ver 2 " in event.deep_get("CommandLine", default=""),
                    " -ve 2 " in event.deep_get("CommandLine", default=""),
                    " -v 2 " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
