Perl module to run a shell command with given environment and captre output