Cost to replace a transmission pressure control solenoid on 2002 Buick LeSabre

Transmission knocked and shifted hard one (1) time. On two other occasions it slipped and did not move when the gas pedal was depressed. This was confirmed by electronics.
How much should it cost to replace the pressure control solenoid?

Asked by for the 2002 Buick LeSabre