Support for PowerShell repl

Fixed some issues. Supports multiline input.
It's a hack, of course, but seems that there's no way to do it better (instead of using API).
I have took a look at Emacs implementation http://www.emacswiki.org/emacs/Powershell.el and seems that there are similar hacks, but without multiline support.