Export Excel with pivot table from command prompt using EasyXLS component! XLSX, XLSM, XLSB, XLS file in VBScript.
https://www.easyxls.com/manual/tutorials/vbs/create-excel-pivot-table.html