This is using powershell 7, I haven't tested with the regular one, but feel free to do so, just swap 'pwsh' with 'powershell' Must also install the ProcessPriority PowerShell module, from: https://github.com/pcgeek86/ProcessPriority
- To install it just run:
Install-Module -Name ProcessPriority -Scope CurrentUser -Force