Need to make a PowerShell script faster
问题 I taught my self Powershell so I do not know everything about it. I need to search a database with the exact amount of lines I have put in (the database is predefined), it contains > 11800 entries. Can you please help me find what is making this slow? Code: $Dict = Get-Content "C:\Users\----\Desktop\Powershell Program\US.txt" if($Right -ne "") { $Comb = $Letter + $Right $total = [int]0 $F = "" do { $F = $Dict | Select-Object -Index $total if($F.Length -eq $Num) { if($F.Chars("0") + $F.Chars(