mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
19 lines
474 B
PowerShell
19 lines
474 B
PowerShell
$xlFile = ".\testExport.xlsx"
|
|
|
|
Remove-Item -ErrorAction Ignore $xlFile
|
|
|
|
$ExportOptions = @{
|
|
Path = $xlFile
|
|
Show = $true
|
|
IncludePivotTable = $true
|
|
IncludePivotChart = $true
|
|
PivotRows = echo Company Name
|
|
PivotData = "PM"
|
|
ChartType = "BarClustered3D"
|
|
#Password = "Test"
|
|
}
|
|
|
|
Get-Process |
|
|
Where Company |
|
|
Select Company, Name, Handles, PM |
|
|
Export-Excel @ExportOptions |