c:\temp\colors.ps1
):
write-host ""
write-host " " -noNewLine
write-host "Warning" -foregroundColor red -backgroundColor yellow
write-host " " -noNewLine
write-host "-------" -foregroundColor blue
write-host " Wearing headphones doesn't" -foregroundColor red
write-host " make farts silent." -foregroundColor red
When executed with something like
powershell -executionpolicy bypass c:/temp/colors.ps1
It prints
No comments:
Post a Comment