I am writing a PowerShell cmdlet in C#, and I need to add some diagnostic logging to the script so that I can evaluate the behavior through TeamCity. Having experimented with WriteVerbose with the -Verbose
flag enabled for the function, nothing was logged to TeamCity.
What is the equivalent of Write-Host for a cmdlet?
What is the difference between the following cmdlets:
- WriteCommandDetail
- WriteProgress
- WriteVerbose
- WriteDebug
- WriteWarning
- WriteError
- WriteObject