Last active
July 20, 2016 05:56
-
-
Save ShuaiyiWu/54babd8f703238bcf76ab7a9905f072a to your computer and use it in GitHub Desktop.
Customized script
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
param ( | |
[parameter(mandatory=$true)] | |
[hashtable]$ParameterDictionary | |
) | |
# Main | |
$source = $($MyInvocation.MyCommand.Definition) | |
$lineNumber = $($Myinvocation.ScriptlineNumber) | |
$reportFilePath = $ParameterDictionary.environment.logFile | |
write-host "I like Avocado with milk mix" | |
write-host "Test url download successfully" | |
write-host "Test logging ..." | |
Logging -message "Log warning test" -source $source -line $lineNumber | |
exit $LASTEXITCODE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment