OK, you need to go to motor driver school and pot school.
Pot first. House rule. ![]()
I googled
potentiometer as voltage divider analog input
and so should you. The six pins are three each on the two potentiometers that are actually in the motorized pot device. I found this picture

I'd swap the rolls of pin 1 and 3, so that turned fully CCW the output would be zero. Pin 2 can be connected to an analog input.
It's best to let the heavies do the work of designing and perfecting things like motor drivers. This google search
dc bidirectional motor driver
turned up a module that I think would work very well. It is a bit spendy, and works for two motors if you have two, and bigger ones than in a motorized pot, so it is overkill.
I say why kill at all unless you are going to overkill. But if you can spare the time, let us wait and see if anyone has a bead on a better choice. There's lotsa inputs on the module, but driving one motor at top speed CW or CCW means most of the inputs are constant, and can be determined and hardwired, not a matter of using Arduino output pins. I would guess you might end up using two - which direction and go or don't. Again, given my evident ability to overlook something critical this day, I'd say it might be good to hear from anyone who has done exactly this.
If the link you posted for the mototrized pot you got is the exact version you ordered, I owe myself a few more slaps with a damp trout. You can be forgiven for not knowing to ask pesky questions about the exact specs for the pots, I cannot be forgiven for not saying in advance that your goal is probably best accomplished with a linear taper potentiometer (not one for audio work) and the nominal value should be 10K to 100K. I see a linear taper 10K model at Mouser
https://www.mouser.com/ProductDetail/Bourns/PRM162-K415S-103B1
but it is not in stock there.
I'm not certain that compensating for the sub-optimal taper would be practical, but I am certain that I would not know where to begin except googling, so once again let's hope that we aren't the only ones reading this...
So... if a deadline looms, it may be wise to investigate alternate designs.
How's a rotary controller (something that can be turned CW or CCW forever) and a ring of LEDs to show the position (and afford opportunity for all kindsa whizzy display stuff) sound?
I can't right now, but I will have time to mock that up in the wokwi.com Arduino simulator for you to take a look. Holding your breath won't make it happen any faster, and there would be parts to purchase, inexpensive but perhaps not arriving by Friday afternoon.
What's the sched? ![]()
L8R
a7