Power Electronics Module. It controls the power to, and regeneration from, the motor, converting DC from the battery to the AC needed for the induction motor. It also converts AC to DC to charge the battery. On the Model S these functions are separated again.