Just use a simulated switch and have that switch coming on be one of the conditions for your piston. Then turning the switch on will run the piston.
If you put the simulated switch in a smartthings scene, you can also make it a widget.
See the community FAQ: