Ok You cannot do it directly, the section of track will have to activate a relay that will switch the switch. The track voltage will burn up the ic's. Again it has to operate a tortoise switch. It doesn't have the power for a conventional one.Only 50 ma. You can measure the voltage across a button to check. I am guessing it is about 5 volts not the 18 on the track. You will need two one for each direction. The train cannot be a length to interfere.
A two way switch will work with an isolated rail you don't need a block piece. Lionel Non derail Switches work that way.