def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith(
                "\\Logging\\CmdletInfra\\LocalPowerShell\\Cmdlet\\"
            ),
            "_Cmdlet_" in event.deep_get("TargetFilename", default=""),
        ]
    ):
        return True
    return False
