First convert your bash script into Perl script, keep the process id of this script in to a file.
Write another perl script with modules Proc::ProcessTable::Process & Sys::Info::Device::CPU
Here you can get the CPU consumption of first script using the process id of the above script.
You can issue stop and continue from this script to the first script based on the CPU load