Sometimes when I’m tinkering around with Windows PowerShell, I need to do a bit of math. So I’ll fire up calc.exe or grab my cell phone. But it hit me one day, “Hey…Windows PowerShell can be used to do math. Why am I’m using extra tools?”

So I started doing the easy stuff, addition, subtraction, multiplication, and division at my PS prompt. And it worked great!

Then I hit a wall. I wanted to do some exponent work. You know 7 to the power of 5 or (75). I can’t use the carrot (^). So I had to do some research on this. But once I saw it, it wasn’t hard at all.

The same method can be used to get square roots.

Or even to get PI