You don't want Echo y as part of your filename. You want just the location of Plink, because that is the executable you are running. To output the letter Y, you will need to put this in the Standard Input after it prompts you.