Run batch file on remote computer powershell. Now I am able to login to the remote machine using putty.