Cap energy consumption of processes on macOS
I think that what you are probably looking to do is keep the multipliers locked to a low value, and/or disable turbo boost.   The former is probably not feasible given the largely proprietary nature of Apple's environment.  Perhaps someone can correct me.

However there is an app out there that will turn off turbo boost

Intel also had a utility to monitor the CPU, not sure if it still works... see this answer