You need a sensored BLDC motor controller. This is a 3-phase MOSFET bridge plus a
microcontroller to read the hall sensors and commutate. The easiest option is to use
the bike controller and drive its throttle voltage directly (disconnect the wiper from the
throttle pot and use a LPF'd PWM line to control it).
But its not always that simple (some controllers use linear hall sensors to control
throttle setting).
If you don't have experience of PWMing an H-bridge, then I'd first go and understand
that first before moving onto three-phase bridges - its not hugely complicated, but
a sound understanding of why a bridge is needed and how PWM motor control works
is needed - a 3-phase bridge has 6 commutation states as opposed to the simple forward/
reverse states of an H-bridge, but the principles aren't really that different.