We fabricate a microscale electromechanical system, in which a suspended superconducting membrane, treated as a mechanical oscillator, capacitively couples to a superconducting microwave resonator. As the microwave driving power increases, nonmonotonic dependence of the resonance frequency of the mechanical oscillator on the driving power has been observed. We also demonstrate the optical switching of the resonance frequency of the mechanical oscillator. Theoretical models for qualitative understanding of our experimental observations are presented. Our experiment may pave the way for the application of a mechanical oscillator with its resonance frequency controlled by the electromagnetic and/or optical fields, such as a microwave-optical interface and a controllable element in a superqubit-mechanical oscillator hybrid system.