Invoke-SpectreScriptBlockQuietly
Description
This function invokes a script block in a background job and returns the output. It also provides an option to suppress the output even more if there is garbage being printed to stderr if using Level = Quieter.
Examples
EXAMPLE 1
Parameters
Command
The script block to be invoked.
Type | Required | Position | PipelineInput |
---|---|---|---|
[ScriptBlock] | false | 1 | false |
Level
Suppresses the output by varying amounts.
Valid Values:
- Quiet
- Quieter
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] | false | 2 | false |