I've been doing this for quite some time. I run a 6 core Intel 5820, so I essentially toggle the affinity to the first core (core 0 in task manager) and back to all cores.
In my case the binary to decimal value for 12 core ( 6 + hyperthreading ) is 4095 not 255
PowerShell "Get-Process...