Replacing mechanical elements in motor controller to digital

Hi, Guys, I'm new to Arduino, so sorry, for strange questions.

I've ordered 10-50V 40A DC Motor Speed Controller to control my 24V 350W DC motor.
https://www.aliexpress.com/item/DC-10-50V-40A-PWM-DC-Motor-Speed-Control-Controller-Programable-HHO-Control-12V-24V-36V/32717736319.html

But I need to operate this controller from Arduino, so I'm going to replace mechanical potentiometer and forward/reverse switch with digital elements.

Someone told me that potentiometer is 100k and voltage on it and on the forward/reverse switch is 10V DC.
Earlier I've found 10k digital potentiometer, but seems it will now work for me?
https://www.aliexpress.com/item/1PCS-NEW-X9C103S-Digital-Potentiometer-Module-for-Arduino/32764929694.html

So is there any digital potentiometer module which I can use for it?

Also this potentiometer is with the switch, so, may I use just relay for switching?

Also forward/reverse with .. should I use double 2 relays for it? Or there is a better solution?

Or is there any better solution to operate this controller form arduino?

You could use the AD5290 from digi-key. It is surface mount (msop) 100k with SPI. Digital pots have a limited power capability so make sure you don't overload them. Relays will work for any of the switching needs.