title: how to automatically answer Yes to multiple prompt in powershell
body: <p>I am trying to automatically answer multiple 'Yes' on below command
  Install-Module -Name PSWindowsUpdate -Force -Confirm:$false</p>
  
  <p>I checked below url and it only answer one y, but trying to add 2 'y' as below, it does not work.
  is there any method we can make it ?</p>
  
  <p>cmd /c echo y y| powershell "the command which will propmt"</p>
  
  <p><a href="https://stackoverflow.com/questions/54035744/automatically-confirm-yes-to-powershell-script">Automatically confirm Yes to powershell script</a></p>