How do you count occurrence of characters in a string?
Group-object is a ready made cmdlet to answer this question
function measure-occurrence {
[CmdletBinding()]
param (
[string]$teststring
)
$teststring.ToCharArray() |
Group-Object -NoElement… Read the full text.