Use the environment service to determine which commands to add to sudoers

Issue #1: Use the environment service to determine which commands to add to sudoers