title: Remove alias in script
body: <p>I can remove an alias like so:</p>
  
  <pre><code>Remove-Item Alias:wget
  </code></pre>
  
  <p>Then trying the alias gives the expected result:</p>
  
  <pre><code>PS &gt; wget
  wget : The term 'wget' is not recognized as the name of a cmdlet, function,
  script file, or operable program.
  </code></pre>
  
  <p>However, if I put the same into a script,</p>
  
  <pre><code>PS &gt; cat wget.ps1
  Remove-Item Alias:wget
  wget
  </code></pre>
  
  <p>it gives unexpected result</p>
  
  <pre><code>cmdlet Invoke-WebRequest at command pipeline position 1
  Supply values for the following parameters:
  Uri:
  </code></pre>