News
Output is 2.5 as expected. Of course for your specific example you'll use a local function and access the [1] index of the array. Rest is still the same.
If you are building PowerShell longer than a few lines, it is good practice to break up your code into reusable snippets. This way you can only call the code snippet over and over instead of ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results