If you run the script like this
it will open a select dialog and if you choose a favourite, the script will set the following strings based on the provided property:
CustomFavourite1.List (the absolute path without the 'Activate.Window()' part. can be used to fill a container with listitems)
I hope this will make things a lot easier for you.
script-favourites is available from the official repo.