Created
February 28, 2018 19:53
-
-
Save Sambardo/fddb629255f4d8e7bae0ab0c38f03aee 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
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