turn on and off gsm shield by programming????

I did this once, I used a digital output from arduino and a opto transistor to toggle the power button on the shield. Although this is not all soft, the power can now be controlled by the arduino.