Sure. I recommend
http://www.wowinterface.com/download...66-WowLua.html but there is also
http://www.wowinterface.com/download...uaConsole.html which was just released.
Even TinyPad and some other notepad type addons will run code for you.
/edit: and don't forget the /script (a.k.a. /run ) slash command.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff,
The Tao of Pooh