Skip to content

Instantly share code, notes, and snippets.

@Sambardo
Created February 28, 2018 19:53
Show Gist options
  • Save Sambardo/fddb629255f4d8e7bae0ab0c38f03aee to your computer and use it in GitHub Desktop.
Save Sambardo/fddb629255f4d8e7bae0ab0c38f03aee to your computer and use it in GitHub Desktop.
Function MyFunction
{
[cmdletbinding()]
param()
Write-verbose "Some verbose message"
Write-host "some host message" -ForegroundColor Green
}
write-host "running normally" -ForegroundColor Yellow
MyFunction
write-host "running with -verbose" -ForegroundColor Yellow
MyFunction -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment