Minecraft Flipping Pistons in world edit?

Hi I'm trying to use world edit to place pistons so that they face a certain direction. I could really use help on how to do that

Pistons have an arm, and what's considered the front is the space the device pushes in.
Pistons automatically face in whichever direction the person places it in. Up, down, left, right. It's suppose to kind of look at your face. You don't need world edit to do this.