Example of exporting selected rows of a new-udtable using the -onexport parameter

Product: PowerShell Universal
Version: 4.5.0

So I’m able to create my table using New-UDTable and I’m able to export all rows of that table to either xlsx or csv just from the -showExport parameter.

However, I would like to be able to select rows from the table and export only those rows. I’ve read quite a few documents and even asked AI - but nothing is working correctly.

Does anyone have an example of how to export selected data from a table so that the user can download that export via their browser?

Thanks