i cannot give array declaration in shell script

This command works as designed.
I shows files modified exactly 5 minutes ago. I suspect you want 5 min and newer in such case that would be "-mmin -5"

Ptree shows the hierarchy of processes, $$ means the current shell.