Realizing arbitrary quantum operations on a mechanical oscillator