Nobby,
The easiest thing to do is outlined in the Wiring For DCC website at:
This section of the website is for power routing frogs when you don't
have any kind of switch machine under the layout.
It actually operates off the throwbar. So if you are using Peco
turnouts and are flipping them with your fingertip, this approach
should still work. The only problem you might run into is if the
spring in the micro switch is stronger than the Peco spring. If using
ground throws, this approach works fine.
Allan