Post · 1 min read· p. 187

Top five gotchas when learning PowerShell

Here is my list of the top five gotchas when learning Windows PowerShell.

  1. PowerShell will not run scripts by default.

  2. PowerShell requires . to run a script in the current directory.

  3. PowerShell uses -eq, -gt, etc. for comparison operators.

  4. PowerShell uses backquote as the escape character.

  5. PowerShell separates function arguments with spaces, not commas.

See PowerShell gotchas for more details and an explanation for why PowerShell made the design decisions it did. As surprising as these features are, there are good reasons for each.