How to prevent your processor from dropping in frequency on Windows?

My notebook is constantly slowing down the CPU frequency.
I have Dell Latitude 5490 with Intel Core i5 8350U , 16GB RAM, 1TB NVME Samsung 980

Even when I’m constantly using my computer, like working on web automation and code.
I’m checking the page and writing code, and regardless of the fact that I work on this Notebook, it’s constantly slowing down from 2.4 GHz to 0.8 GHz.

I thought that I found that this is related to power saving and Energy Profile in Windows.

So I used the “Highest Performance” power profile thanks to the following PowerShell command:

powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61

I even check the properties of the power profile and ensure that he should use 100% power even in battery mode (not only when plugged to the grid).

And on some laptops/notebooks, they have very good results, but not on all laptops/notebooks.

You can say that the CPU in my Laptop/Notebook is overheating.
CoreTemp says my CPU cores are around 42-44 degrees Celsius.

Why does it slow down the frequency?
How to avoid it?