|
|
|
@ -39,6 +39,7 @@ $commands = ( |
|
|
|
) |
|
|
|
|
|
|
|
foreach ($command in $commands) { |
|
|
|
$timer = [System.Diagnostics.Stopwatch]::StartNew() |
|
|
|
Write-Host $command |
|
|
|
Invoke-Expression $command |
|
|
|
if ($LASTEXITCODE -ne '0' -And $command -notlike '*cd *') { |
|
|
|
@ -46,4 +47,9 @@ foreach ($command in $commands) { |
|
|
|
Set-Location $RootFolder |
|
|
|
exit $LASTEXITCODE |
|
|
|
} |
|
|
|
$timer.Stop() |
|
|
|
$total = $timer.Elapsed |
|
|
|
Write-Output "-------------------------" |
|
|
|
Write-Output "$command command took $total (Hours:Minutes:Seconds:Milliseconds)" |
|
|
|
Write-Output "-------------------------" |
|
|
|
} |