How can I restart an application if it's taking a lot of say CPU utilization or taking too much RAM on Linux, is there any shell script to do the same?
Why would you want to use a script to do that? Close the application. Or, in the system monitor, end or kill the process. If you don't want to use the GUI, then you can open a terminal, run