Automate PuTTY SSH sessions and capture command logs using plink.exe with key authentication or Expect scripts.