Copy the examples from script repository

Moves the scripts under Example folder to new api.

It does copy the same scripts that were already migrated from the scriptrepository

re #7698
Merge remote-tracking branch 'origin/feature/7698_migrate_examples_api'