As part of a powershell script im working on, i use rsh in order to connect to another shell however after using this all subsequent commands are ignored and the script just