Powertrain inverter for commercial, construction and agricultural vehicles