Different cmd to execute and based on some pattern parse it and then store result in xlx format

Hi
I have a different requirement,
I need to run some application on my device from a file app_name.txt one by one which is like this:

/usr/apps/email
/usr/apps/message
/usr/apps/settings

after each app while it is running I need to execute again one cmd like

ps -ef |grep /usr/apps/email

then this cmd will give output like this:

user 6423 6602 0 11:23 pts/4 00:00:00 /usr/apps/email

on this output I need to extract the 2nd, 3rd and last column value only and store it to another excel format file(result.xls) whose format will be like:

/usr/apps/email 6423 6602 13025 (sum of the 2 column value)

This all will be executed like same for all other app name from the file app_name.txt

please help me for this script as I am new to this and dont have much idea abt cmds of shell script.

Is this a homework item? Adding a process's process ID to its parent's process ID doesn't seem to have any real world value.

its an example command....actually I need to execute some memory profiling command which gives output like this so I put some real command output.