system $shell, '-c', $_;
$shellcontains the name of the shell that you determined to use.
-ctells the shell to just run the command in the following argument.
$_holds the command; it is the last thing read from
$?in some form, in case later
pshcommands wish to make use of it.