Apply service environment before executing service command