applyScenario function

Apply scenario to the given model or dataset.