title: Powershell: What's the correct syntax to override a param block from within a script?
body: <p>I've got a param block <code>param([switch]$csv, [switch]$recurse)</code> and I want to hardcode the values in the script rather than pass them from the command line. Is it as simple as replacing the <code>param</code> block with </p>
  
  <pre><code>$csv="hardcoded value"
  $recurse="another hardcoded value" 
  </code></pre>
  
  <p>or is there something else I need to watch out for?</p>