I have found a simpler way to disable power throttling from this link: https://forums.ni.com/t5/LabVIEW/CPU-load-when-application-is-minimized-is-reduce-50/td-p/4343470/page/2
Run this in an Administrator CMD for your exe:
powercfg /powerthrottling disable /path "C:\Program_Path\program.exe"