title: Parsing a csv for Read-Host user input
body: <p>So here is my problem... I have exported a list (CSV file) of computer names, MAC Addresses, and IP addresses for Wake on LAN via a PowerShell script. I'd like to have a read-host option at the top asking the user the host name of the computer they want to wake. That part is easy enough with a simple Read-Host.</p>
  
  <p>Here's my question: how can i search through the exported CSV for the userinput that the user input?</p>
  
  <p>Here's an example of my csv:</p>
  
  <pre><code>Hostame              MAC               IP Address
  
  Computer 1     00-15-60-97-5B-8E       192.168.0.1
  etc                    etc                 etc
  </code></pre>
  
  <p>so if the user specifies they want to wake computer1 by inputting computer1@domain.com setting the Read-Host variable, how can I have a script find the computer the user wants to wake, and then grab the mac and the ip to use in combination with WOLCMD.exe (Wake on LAN command line tool)</p>