This is a script that you can use to control a local WeMo switch. You can turn turn on, turn off, toggle, or get status. You need to know the local IP of the WeMo and enter that in the top of the script. Then, uncomment one of the triggers at the bottom of the script.
https://gist.github.com/pruppert/af7d38cb7b7ca75584ef
This is a fork of pdumoulin's blinky script on github (https://github.com/pdumoulin/blinky).