I suppose you have a proportional hydraulic valve.
That valve will be powered by a PWM circuit controlled by the 10k potmeter.
The faster the pulses out of the PWM, the faster the cylinder will go.
How is the direction of the cylinder controlled?
Do you have another valve for direction, or does the speed valve also control direction?
In other words how does the hydraulic circuit looks like?
From my maintenance experience I should tell you:
Buy existing electronic modules from a well-known factory e.g. Wandfluh.