title: Using an answer file with a PowerShell script
body: <p>I have a PowerShell script with a number of 'params' at the start:</p>
  
  <pre><code>param(
      [switch] $whatif,
      [string] $importPath = $(Read-Host "Full path to import tool"),
      [string] $siteUrl = $(Read-Host "Enter URL to create or update"),
      [int] $importCount = $(Read-Host "Import number")
  )
  </code></pre>
  
  <p>Is there any way I can run this against an answer file to avoid entering the parameter values every time?</p>