Script to setup Windows 10 1903
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

12 lines
426 B

$text = ""
$textLength = New-Object System.Collections.ArrayList($null)
for ($i = 0; $i -lt $text.Length; $i++) {
$obj = New-Object -TypeName PSObject -Property @{TextLength = $text[$i].Length; Text = $text[$i] }
[void]$textLength.Add($obj)
}
($textLength | Group-Object -Property TextLength | Sort-Object -Property Count -Descending).Group.Text -replace """", """ | ForEach-Object {
"""{0}""," -f $_
}