Moved To: http://metaskills.net/2010/02/06/simple-script-console-function/