title: How do I execute a script from Windows Powershell?
body: <p>I created a small aws.bat script and then in PowerShell I navigated to the script directory. </p>
  
  <p>But when I type aws then I get an error message and it does not execute the script. Is there a special thing I should be doing?</p>
  
  <p>Here's what I have tried:</p>
  
  <pre><code>PS C:\G&gt; .\aws.bat
  
  C:\G&gt;$BucketName = "ab-user"
  '$BucketName' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>The very first and every othre command has a similar message.</p>