Cmdlet
Show-ConsoleRule
Writes a horizontal rule, optionally with a title.
Syntax
Show-ConsoleRule
[-Alignment <Left| Center| Right>]
[-AsString]
[-AsWidget]
[[-Title] <Object>]
[-Width <Int32>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
A quick section separator for scripts.
Examples
Example 1
Show-ConsoleRule 'Step 2: collect'A section header
Parameters
- -Alignment HorizontalAlignment
- Alignment of the section title (default left, as on the rule builder).
- Possible values:
Left,Center,Right - -AsString SwitchParameter
- Returns plain text without drawing.
- -AsWidget SwitchParameter
- Returns the rule widget without drawing.
- -Title Object
- The title (markup allowed).
- -Width Int32
- The width in cells (default the window), to match other output laid out with -Width.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.