Execute Shell commands in a specified environment