I'd suggest you are going to have to create an empty Excel workbook first and then add a VBA macro to it that will create a pivot table.
You can then use UIPath to pull in the raw data into the workbook and execute the macro to actually create the pivot table.