For those that are interested, this is how you control a motor to spin and reverse. I recommend using a relay across your factory switches if it has the ability to automatically stop, it just makes everthing easier. If not then this circuit will work.
The fuse is just protection for a short.
The shunt has to be powerfull enough to take the current watts = (I squared R) or IxIxR.
The shunt cant have a too high resistance as the motor wont spin.
The shunt cant be too low else it would be hard to measure the voltage.
*note, the initial current peak in the graph is due to the motor starting up.
I have seen some other circuits that use a magnetic pick-up on the motor and the amount of pulses are counted to determine when to stop. This way is allot more fun as you can determine if the window was stopped half way up, and possibly give a warning or error.
With this pick-up system you can also tell if you motor is dying or needs lube buy timing how long it takes to reach the top and how many pulses have been counted. You will notice that the motor will be slower when the car is off.