Minecraft: spawn command set powered rail?

bu
1

I need a command (for my command block). This should spawn the following: Powered Rail should be activated and the direction should be changeable. This should be done with a command, not activated via a red tone line! I use Minecraft version 1.8.

There's an article here, but I don't know how the command is composed: https://minecraft.gamepedia.com/...wered_Rail

Thanks to everyone who knows better!

Minecraft: spawn command set powered rail
Be

/ setblock ~ ~ ~ minecraft: powered_rail [powered = true, shape = north_south] replace