in reply to open handle

Erm... $/ is the line separator. I'm pretty sure you don't want that in your command argument. Not sure what you mean do have instead, but if you want a literal "$/" text use a backslash escape: "\$/"