there standard thread, use mole grips, Slip Joint Plie etc to grip the shaft and something to grip the nut.

but you will need to battle hardern the magenets in the scooty, and it suggestable to weld the sporket onto the motor shaft. you know what chain you going to be using ?