title: Read Computer Names from Text File and Execute a Command
body: <p>I have a simple Powershell script to check the status of BitLocker drive encryption on a computer on the network. I'd like for the script to determine the status of multiple computers in a text file.</p>
  
  <p>Here's my basic script so far:</p>
  
  <pre><code>$GetID = Read-Host "What is the Device ID?"
  $ComputerID = manage-bde -status -cn "$GetID"
  foreach ($Computer in $ComputerID) {
      Write-Host("$Computer")
  }
  </code></pre>
  
  <p>What this does is prompt the tech for the host name and gives the results. How can I have the script prompt the tech for a path to a text file and then have the script give a list of results from that text file?</p>