I (apparently wrongly) assumed there would be a built-in power
function in Powershell, but I it seems there is not, or is there?
As you’ve found, real exponentation can be achieved with some accuracy by calling
For large integer exponentiation, you might want to use
PS ~> [Math]::Pow(256, 20)
PS ~> [bigint]::Pow(256, 20)