title: How can you check whether input value is in array or not (Powershell)
body: <pre><code>$InputArray = @(a,e,i,o,u,1,2,3,4,5)
  $UserInput = &quot;Enter any value:&quot;
  </code></pre>
  <p>How can we check that <code>$UserInput</code> is in <code>$InputArray</code> or not and prompt for correct input?</p>