Powershell doesn't simply enter the chat. Powershell enters-its-username-and-password-and-hits-enter the chat.
[I'm usually a fan of informative command names, but surely there's a happy medium]
Really it's just a souped-up Python interactive shell. When you give it bash commands, it forks to bash. When you give it python it evaluates like a REPL