Enphase Battery Charge / Discharge energy command

Hi,
Somebody tried this script for enphase Charge and discharge order for Enphase Battery ?

thx for feedback