As a developer, I often want to perform a matrix of calculations on an array. This is certainly possible with PowerShell and foreach / Foreach-Object. It is also less elegant than it could be, given ...
With PowerShell you can have so-called advanced functions optionally consume their arguments from the PowerShell pipeline instead of functions arguments. To enable this option for your function, add a ...