Find a small 24v power supply which puts out enough current for the knocker, run the 12v to the coil of a 12v relay, and the 24v going to the knocker can be controlled with it. I indicated 24v, as these would be easier to find than 27v, and still get you close enough for a convincing "thwack".