Needing to Re-Start my Waveshield after 35ish button presses

Probably so- I'm a newbie coder, so I'm not sure where this command would go in the code?