title: windows powershell check file-exist doesn't work
body: <p>guys</p>
  
  <p>i am learning PowerShell and I found its behaviour really strange. Basically, i cannot get any example script (from internet) working.</p>
  
  <p>for instance, this one:    </p>
  
  <pre><code>$WantFile = "C:\Users\psuser\Documents\GitHub\test\Bin\test.exe" 
  $FileExists = Test-Path $WantFile 
  If ($FileExists -eq $True) {Write-Host "Yippee"}
  Else {Write-Host "No file at this location"}
  </code></pre>
  
  <p>looks pretty simply from a bash perspective, but i was told:</p>
  
  <pre><code>C:\Users\psuser\Documents\GitHub\test&gt;$FileExists = Test-Path $WantFile
  '$FileExists' is not recognized as an internal or external command,
  operable program or batch file.
  -eq was unexpected at this time.
  </code></pre>
  
  <p>can anyone quickly let me know where i got it wrong?</p>
  
  <p>thanks!</p>