Help needed in selecting a file

By "first file in the list" I assume you want to scroll the lister to show the file, am I correct?

You can restore a selection with SelectEx (a script command: Command: SelectEx (extended Select command)).
The command line is:

SelectEx EXACT FROMCLIP MAKEVISIBLE