Powertrain inverter for truck and agricultural vehicles