|
|
@ -62,7 +62,7 @@ function Test-CommandExists { |
|
|
|
param ($command) |
|
|
|
param ($command) |
|
|
|
|
|
|
|
|
|
|
|
$oldPreference = $ErrorActionPreference |
|
|
|
$oldPreference = $ErrorActionPreference |
|
|
|
$ErrorActionPreference = ‘stop’ |
|
|
|
$ErrorActionPreference = "stop" |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
if(Get-Command $command){ return $true } |
|
|
|
if(Get-Command $command){ return $true } |
|
|
|