How to change formal charge through scripting

 

Dear all,

how to change atom's formal charge through scripting ?

I try to encode " \\\$atom->FormalCharge->Numerator = 0; " in script,  but to no avail.

 

thank you :)