How to limit the GPU temperature?

I’m new to UE.
I programmed in C++ using DirectX. There I created code to limit the GPU termperature (on a Nvidia GTX Hardware) to a desired max. temperature (e.g. 65 °C)
How can I insert this code (or the native DLL) into UE ? So that the UE editor does not go on high temperatures ?

I found out, that I can reduce FPS by t.MaxFPS=10 in … \Config\Windows\WindowsEngine.ini:

That is great, but it generally does not ensure, that the GPU temperature is absolutely limited.