I want to control the T200 using Raspberry Pi

I’m experimenting with 2 basic esc’s, 2 T200 thrusters, and a thruster commander. The escs and thruster commander are all receiving 16v input.

Here, I want to control the T200 using a Raspberry Pi4 instead of a potentiometer in the thruster commander. Can you tell me how?