There is no native way to do that in FreePBX, either fraggle4's suggestion, or bear in mind that part of . . .putty (et al). . . is plink
so calling from your windoze box:
plink <yourelastixserver> <myscriptfilename> <theextensiontocontrol> <A|D>
is pretty tiny wouldn't you agree?
(you will need to set up ssh keys to make it automatic, ref:
the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html
)
make a shortcut to call it, add the parameterization to choose the extension to control
either as a an armature (sic.) or stator, you will have to provide the EMF to make either method work.