How do I run a script

See the documentation on export:

Do you refer to this thread?