Assuming that the quotes that you’re using in the file are not “smart” (so regular " quotes and not “/”), I don’t know why it’s not working. Even though I’m not sure if Putty can be used (since there are pseudo terminals involved), I would expect it to at least be able to connect.