Added a function that evaluates any scope (regardless of whether it is a task or a config).