Teilantwort:
Affinität erhalten und festlegen:
PowerShell "Get-Process app | Select-Object ProcessorAffinity" PowerShell "$Process = Get-Process app; $Process.ProcessorAffinity=255"
https://stackoverflow.com/questions/19187241/change-affinity-of-process-with-windows-script
Holen Sie sich alle Prozesse:
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee176855(v=technet.10)