Skip to content

Instantly share code, notes, and snippets.

@ShuaiyiWu
Last active July 20, 2016 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShuaiyiWu/54babd8f703238bcf76ab7a9905f072a to your computer and use it in GitHub Desktop.
Save ShuaiyiWu/54babd8f703238bcf76ab7a9905f072a to your computer and use it in GitHub Desktop.
Customized script
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