PSScriptBuilder

1.0.0

Build a single deployable PowerShell script from a multi-file project. PSScriptBuilder resolves class inheritance and dependency order automatically using AST analysis — no manual ordering required. Supports classes, enums, functions, template-based output, and release management.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSScriptBuilder

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSScriptBuilder

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Tim Hartling. All rights reserved.

Package Details

Author(s)

  • Tim Hartling

Tags

PSScriptBuilder Build BuildTool Classes ClassDependency DependencyResolution TopologicalSort AST ReleaseManagement SemVer ModuleBuilder Deployment Automation PowerShell5 PowerShell7 Windows Linux MacOS

Functions

Add-PSScriptBuilderCollector Format-PSScriptBuilderBuildResult Format-PSScriptBuilderBumpResult Format-PSScriptBuilderReleaseDataResult Get-PSScriptBuilderBumpConfiguration Get-PSScriptBuilderCollector Get-PSScriptBuilderCollectorContent Get-PSScriptBuilderConfiguration Get-PSScriptBuilderDependencyAnalysis Get-PSScriptBuilderReleaseData Get-PSScriptBuilderReleaseDataTokens Get-PSScriptBuilderTemplateAnalysis Invoke-PSScriptBuilderBuild New-PSScriptBuilderCollector New-PSScriptBuilderConfiguration New-PSScriptBuilderContentCollector New-PSScriptBuilderReleaseData Remove-PSScriptBuilderCollector Set-PSScriptBuilderProjectRoot Test-PSScriptBuilderBumpConfiguration Test-PSScriptBuilderReleaseData Test-PSScriptBuilderTemplate Update-PSScriptBuilderBumpFiles Update-PSScriptBuilderReleaseData

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

## v1.0.0 — Initial Release

PSScriptBuilder is a PowerShell module that builds a single deployable script from multi-file projects —
with automatic dependency resolution, topological sorting, cycle detection, template-based output,
and integrated release management.

- Collector-based script building (Using, Enum, Class, Function, File)
- AST-based extraction with automatic dependency resolution
- Topological sorting using Kahn's algorithm
- Circular and cross-dependency detection
- Template system with Free, Hybrid and Ordered Mode
- Full release management pipeline with SemVer bumping
- Bump file propagation with token and regex mode
- Compatible with PowerShell 5.1 and PowerShell 7+
- Full documentation with guides and cmdlet reference at https://docs.psscriptbuilder.com/

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 3 4/14/2026