Intercept and modify control inputs?

I would like to read the (for example) Quadrant inputs and output my preferred values (scaling the min and max to some range).

Can I do this with simconnect or is this a WASM function?

I currently am readning and outputting the control values, but the FS reverts to the physical control lever settings after a few seconds.