I have a PowerShell script like this:
Foreach ($file in $files) { [Do something] [Do something] [Do something] }
This way one f
Powershell 7 introduces foreach-object -parallel:
foreach-object -parallel
https://devblogs.microsoft.com/powershell/powershell-foreach-object-parallel-feature/
Your script would then say
$files | ForEach-Object -parallel { [Do something] [Do something] [Do something] }