mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-02-10 13:40:14 +00:00
19 lines
400 B
PowerShell
19 lines
400 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 |