Added try/catch

This commit is contained in:
dfinke
2018-07-04 18:58:40 -04:00
parent 35553baa05
commit b591a4ab18
17 changed files with 84 additions and 51 deletions

View File

@@ -1,4 +1,6 @@
Remove-Item -Path .\test.xlsx -ErrorAction Ignore
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
Remove-Item -Path .\test.xlsx -ErrorAction Ignore
$excel = Get-Process |
Select-Object -Property Name,Company,Handles,CPU,PM,NPM,WS |