Vtx IRC Tramp Power Level not working

Hi, I’m trying to control the VTX power level over AUX by writing a custom lua script to be able to control the VTX power, but in the RF Meter, it stays constant and the power level is not increasing.
The parameters are changing but the output power is not changing. Even with manual change in the parameter for power, the output power is not changing?

Why do you need a lua script?

There is direct support to adjust power level using a potentiometer or switch as said in the documentation for vtx.

Do the LEDs on the VTX change?

Is the protocol and VTX_OPTIONS set correctly?