Added try/catch. Expanded aliases

This commit is contained in:
dfinke
2018-07-05 16:14:56 -04:00
parent e4fbf7e92e
commit eac352c28a
47 changed files with 204 additions and 136 deletions

View File

@@ -1,12 +1,16 @@
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
$xlfile = "$env:temp\testFmt.xlsx"
Get-Process |
Select-Object Company,Handles,PM, NPM|
Select-Object Company,Handles,PM, NPM|
Export-Excel $xlfile -Show -AutoSize -CellStyleSB {
param(
$workSheet,
$totalRows,
$lastColumn
)
Set-CellStyle $workSheet 1 $LastColumn Solid Cyan
foreach($row in (2..$totalRows | Where-Object {$_ % 2 -eq 0})) {