Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLTab

Namespace PSWriteHTML

Creates a new HTML tab with customizable content and icons.

Remarks

The New-HTMLTab function creates a new HTML tab with the specified content, heading, and icon. It supports different parameter sets for FontAwesomeBrands, FontAwesomeRegular, and FontAwesomeSolid icons.

Examples

Authored help example

EXAMPLE 1


New-HTMLTab -HtmlData { Get-Process } -Heading "Processes" -Name "ProcessTab" -IconBrands "windows"
        

Creates a new tab displaying the list of processes with a Windows icon.

EXAMPLE 2


New-HTMLTab -HtmlData { Get-Service } -Heading "Services" -Name "ServiceTab" -IconRegular building
        

Creates a new tab displaying the list of services with a hard drive icon.

EXAMPLE 3


New-HTMLTab -HtmlData { Get-EventLog -LogName System } -Heading "System Events" -Name "EventTab" -IconSolid "exclamation-triangle"
        

Creates a new tab displaying the system events log with an exclamation triangle icon.

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.

Syntax

New-HTMLTab [-AnchorName <String>] [-Heading <String>] [-HtmlData <ScriptBlock>] [-IconBrands <String>] [-IconColor <String>] [-IconSize <Object>] [-Name <String>] [-TextColor <String>] [-TextSize <Object>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: FontAwesomeBrands

Parameters

AnchorName String optionalposition: namedpipeline: False
New-HTMLTab - Add text-transform
Heading String optionalposition: 1pipeline: Falsealiases: TabHeading
The heading or title of the tab.
HtmlData ScriptBlock optionalposition: 0pipeline: False
The HTML content to be displayed within the tab. This should be provided as a ScriptBlock.
IconBrands String optionalposition: namedpipeline: False
The icon to be displayed for FontAwesomeBrands. Use tab completion to select from available options.
IconColor String optionalposition: namedpipeline: False
IconSize Object optionalposition: namedpipeline: False
Name String optionalposition: namedpipeline: Falsealiases: TabName
The name of the tab.
TextColor String optionalposition: namedpipeline: False
TextSize Object optionalposition: namedpipeline: False
TextTransform String optionalposition: namedpipeline: Falsevalues: 3
Possible values: uppercase, lowercase, capitalize
New-HTMLTab [-AnchorName <String>] [-Heading <String>] [-HtmlData <ScriptBlock>] [-IconColor <String>] [-IconSize <Object>] [-IconSolid <String>] [-Name <String>] [-TextColor <String>] [-TextSize <Object>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: FontAwesomeSolid

Parameters

AnchorName String optionalposition: namedpipeline: False
New-HTMLTab - Add text-transform
Heading String optionalposition: 1pipeline: Falsealiases: TabHeading
The heading or title of the tab.
HtmlData ScriptBlock optionalposition: 0pipeline: False
The HTML content to be displayed within the tab. This should be provided as a ScriptBlock.
IconColor String optionalposition: namedpipeline: False
IconSize Object optionalposition: namedpipeline: False
IconSolid String optionalposition: namedpipeline: False
The icon to be displayed for FontAwesomeSolid. Use tab completion to select from available options.
Name String optionalposition: namedpipeline: Falsealiases: TabName
The name of the tab.
TextColor String optionalposition: namedpipeline: False
TextSize Object optionalposition: namedpipeline: False
TextTransform String optionalposition: namedpipeline: Falsevalues: 3
Possible values: uppercase, lowercase, capitalize
New-HTMLTab [-AnchorName <String>] [-Heading <String>] [-HtmlData <ScriptBlock>] [-IconColor <String>] [-IconRegular <String>] [-IconSize <Object>] [-Name <String>] [-TextColor <String>] [-TextSize <Object>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: FontAwesomeRegular

Parameters

AnchorName String optionalposition: namedpipeline: False
New-HTMLTab - Add text-transform
Heading String optionalposition: 1pipeline: Falsealiases: TabHeading
The heading or title of the tab.
HtmlData ScriptBlock optionalposition: 0pipeline: False
The HTML content to be displayed within the tab. This should be provided as a ScriptBlock.
IconColor String optionalposition: namedpipeline: False
IconRegular String optionalposition: namedpipeline: False
The icon to be displayed for FontAwesomeRegular. Use tab completion to select from available options.
IconSize Object optionalposition: namedpipeline: False
Name String optionalposition: namedpipeline: Falsealiases: TabName
The name of the tab.
TextColor String optionalposition: namedpipeline: False
TextSize Object optionalposition: namedpipeline: False
TextTransform String optionalposition: namedpipeline: Falsevalues: 3
Possible values: uppercase, lowercase, capitalize