PowerShell Module

Installation

Import-Module .\Module\HtmlForgeX.psd1

Public PowerShell Gallery publishing is not active yet. Use the repository module manifest or your private module feed until the gallery package goes live.

Basic Usage

Import-Module .\Module\HtmlForgeX.psd1

New-HtmlX -Title "Hello HtmlForgeX" -FilePath .\report.html {
    New-HtmlXSection -Title "Overview" {
        New-HtmlXText -Text "Generated: $(Get-Date)" -Style Muted
    }
}

If you publish the module to your private feed or place it on PSModulePath, Import-Module HtmlForgeX works too. Use the .NET API directly only when you intentionally want to script against HtmlForgeX.Document from PowerShell. For cmdlet syntax and parameters, use the full reference at /api/powershell/.

PSObject Support

HtmlForgeX supports PowerShell's PSObject for table generation, allowing you to pass pipeline output directly to table components.

Compatibility

The PowerShell module works with:

  • Windows PowerShell 5.1 — Via .NET Framework 4.7.2
  • PowerShell Core 7+ — Via .NET Standard 2.0 / .NET 8.0