title: Win10 - How to pipe the output from one command as an argument of another to check file hash?
body: <p>Lets say that I need to verify the md5 hash of a file against the hash provided by the website.</p>
  <p>I use <code>certutil -hashfile .\amazon-corretto-11.0.10.9.1-windows-x64.msi md5</code> or <code>Get-FileHash -Path .\amazon-corretto-11.0.10.9.1-windows-x64.msi -Algorithm md5</code> in powershell to get the hash, then I look at the hash from the download website, and compare them letter by letter. Is there a way to let the command line do the comparison?</p>
  <p>I tried <code>certutil -hashfile .\amazon-corretto-11.0.10.9.1-windows-x64.msi md5 | echo == &quot;website_hash&quot;</code>, but it didn't work.</p>
  <p>Solutions in command line and powershell are both welcomed.</p>