Created
September 5, 2017 18:30
-
-
Save vScripter/94bf70bd9caad40d85109db32b9ef0da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROCESS { | |
if (Test-Path -LiteralPath $filePath -PathType Leaf) { | |
Get-Content -LiteralPath $filePath -ReadCount 0 | |
} else { | |
Write-Warning -Message 'Work Log file has not been created' | |
} # end if/else | |
} # end PROCESS block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment