air conditioner and power windows. on 2002 Chevrolet Malibu

Air conditioner and electric windows stop working at the same time and them start to work.

Asked by for the 2002 Chevrolet Malibu
the button switch that controls them could be going bad thus the part time thingy goin on