run perl commands through shell so that environment is properly setup