Limit an existing program by its executable name

cpulimit

cpulimit --exe {{program}} --limit {{25}}

click the source code to copy install cpulimit on any operating system with command-not-found.com