Pushing value to brightness contrast adjustment layer

Hello!
I am a beginner trying to dabble in coding to automate things for my work.
I am trying to make a code that will sync values between multiple selected adjustment layers. I’ve broken my problem down into bite sizes. I am currently trying to write a js that will push a value to my brightness value in an adjustment layer. So far I have been able to read values on the console with this code provided by another user

function getBrightness() {
const result = batchPlay(
[{
“_obj”: “get”,
“_target”: [{
“_property”: “json”
},
{
“_ref”: “layer”,
“_enum”: “ordinal”,
“_value”: “targetEnum”
},
{
“_ref”: “document”,
“_enum”: “ordinal”,
“_value”: “targetEnum”
}
],
“_options”: {
“dialogOptions”: “dontDisplay”
}
}], {
“synchronousExecution”: true,
“modalBehavior”: “fail”
});
const getBrightness = JSON.parse(result[0].json).layers[0].adjustment.brightness;
console.log(getBrightness)
}

Now I am curious how to write if anyone had any solutions or directions to look towards.
Thanks a million!