Pixhawk controlling hydraulic proportional valve

Hi, looking to use pixhawk controller to operate a hydraulic proportional valve. has anyone had any experience with this?. Hydraulic proportional valves use a solenoid controlled by PWM.
Because of my lack of knowledge on how these products might communicate successfully, Im thinking from a programming perspective it might be easier to use a servo that moves a potentiometer to feed the solenoid. Seems counter intuitive given there is potentiometer in the servo communicating already.
Thought anyone?