Apparatus and method for managing a powertrain in a vehicle