I have often run into the need to capture output from Write-Verbose and Write-Debug. I know that it can currently be done by using subexpressions and output redirection. Those methods are not quite as user friendly as -OutVariable, -InformationVariable, -ErrorVaraiable, and -WarningVariable. I'm sure there was a good reason for not including -DebugVariable and -VerboseVariable, but I'm curious if these could be added.
I have often run into the need to capture output from
Write-VerboseandWrite-Debug. I know that it can currently be done by using subexpressions and output redirection. Those methods are not quite as user friendly as-OutVariable,-InformationVariable,-ErrorVaraiable, and-WarningVariable. I'm sure there was a good reason for not including-DebugVariableand-VerboseVariable, but I'm curious if these could be added.