http://blogs.msdn.com/greggm/archive/2008/06/09/writing-a-script-debugger-without-using-the-mdm.aspx