Great script you wrote there. Especially not missing out on those extra coins can really be a difference if the coin in question is appreciating at that moment. I have a separate gaming laptop which overheats while mining so i do not use it except for gaming. Otherwise I would have applied the script as well!
RE: Mining while gaming and switching between multiple GPU mining with Powershell