Why is equals “-eq” in PowerShell and not just “=”?
Basically the answer is that it is how Unix has done it forever. Sure enough, if you write some Bash scripts that’s what you’ll use and it’s actually nice to have your PowerShell syntax knowledge transfer over one for one to Bash. It is answered in detail in Bruce Payette’s Windows PowerShell in Action, Second … Read more