A profile script generally will return a single value. Though it could be some sort of concatenated string. I think your use case might be better achieved in a different way. If you are wanting Recommendations to generate the results you could try a custom criteria with a custom key. Your custom criteria file could use the visitor's id as the key and then you can list the 8 product id's you want that visitor to see (probably very similar your customer attributes files with new column names). Something like this:
Then you setup a custom key in Recommendations that uses the same visitor id used in your custom criteria. Be sure to set the recommendation key in your custom criteria as the new custom key. Then create an activity that uses your custom criteria and your preferred design.