Not that I know of, but you should be able to work some trickery depending on what $shell_cmd outputs.
For instance, if $shell_cmd ouputs multiple lines of output you can use shell_exec/COLOR or passthru/COLOR (passthru in conjunction with output buffers) and then
$array = explode("\n" , $output);
What kind of output are you expecting from $shell_cmd?