added log file output for Run-Script function

This commit is contained in:
2020-10-25 20:33:38 -04:00
parent 9665059675
commit 28ea9fc3f5
+3
View File
@@ -152,6 +152,9 @@ switch ($PSCmdlet.ParameterSetName)
}
}
}
## Write the log file output to the console
If ( Test-Path $LogFile ) { Get-Content -Path $LogFile | Write-Output }
Else { Write-Output "Log file not found at ""$LogFile""" }
}
## Return a Powershell version object from a string