in reply to return the output to the Parent script

Read the documentation for system, it explains the return value. Which part isn't clear?

Also system() will return only one value, so $message will always stay undef in your example.