If you are exporting records to a brand new file which can be filemaker, excel or other formats, use export records.
If you want to export records to an existing filemaker file, you need two scripts:
In your target file, create a script that uses import records to import records from your source file.
In your source file, create a script that sets up the necessary found set and then uses a Perform Script step to trigger the Import script you just created in the target file.
This is a very general description. These two steps have a lot of different options and can make major changes to your files. Read up on them in the help file and then test your scripts out on copies of your files first.