MyPowerShellTemplates
1.2.0
A comprehensive PowerShell module development toolkit for creating templates, scaffolding modules, and generating PowerShell scripts with best practices built-in.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2024 NumidiaLive. All rights reserved.
Package Details
Author(s)
- numidia
Tags
PowerShell Template Module Scaffolding Development CodeGeneration Templates Functions Scripts
Functions
New-PstFunction New-PstModule New-PstModuleManifest New-PstScript Open-PstGuiFunctionSelector Set-PstAutomationMode Get-PstAutomationMode
Dependencies
This module has no dependencies.
Release Notes
## v1.2.0 (2025-11-10)
- Release via GitHub Actions
## v1.1.0 (2025-11-09)
- **NEW FEATURE**: Added complexity levels for function and script templates
- **ENHANCEMENT**: New-PstFunction now supports -ComplexityLevel parameter (Basic, Moderate, Complex)
- **ENHANCEMENT**: New-PstScript now supports -ComplexityLevel parameter (Basic, Moderate, Complex)
- **NEW TEMPLATES**: Added Function-Basic.ps1, Function-Moderate.ps1, Script-Basic.ps1, Script-Complex.ps1
- **DOCUMENTATION**: Added comprehensive PowerShell Complexity Levels guide
- **BACKWARD COMPATIBLE**: Existing functions default to Complex level for compatibility
### Complexity Levels:
- **Basic**: Minimal structure for simple automation tasks
- **Moderate**: Parameter validation, basic error handling, help documentation
- **Complex**: Full cmdlet features, pipeline support, begin/process/end blocks
## v1.0.2 (2025-09-14)
- Version bump via release script
## v1.0.1 (2025-09-14)
- Version bump via release script
## v0.0.0.4
- Complete CI/CD pipeline implementation
- Cross-platform compatibility (Windows, Linux, macOS)
- Comprehensive test coverage with Pester 5.x
- PSScriptAnalyzer compliance
- Template-based code generation for functions, modules, and scripts
- GUI function selector with XAML interface
- Automation mode detection for CI/CD environments
## Features
- New-PstFunction: Generate PowerShell functions from templates with complexity levels
- New-PstModule: Scaffold complete PowerShell modules
- New-PstScript: Create PowerShell scripts with complexity levels
- New-PstModuleManifest: Generate module manifests
- Open-PstGuiFunctionSelector: Interactive template selection GUI
- Get/Set-PstAutomationMode: Automation environment detection
## Requirements
- PowerShell 5.1+ or PowerShell Core 7+
- Windows, Linux, or macOS
FileList
- MyPowerShellTemplates.nuspec
- MyPowerShellTemplates.psd1
- Private\Get-PublicPath.ps1
- MyPowerShellTemplates.psm1
- Private\Get-ModuleRootFileName.ps1
- Private\Get-ModuleRootFilePath.ps1
- Public\New-PstScript.ps1
- Private\Get-ModulePSScriptRoot.ps1
- Public\Open-PstGuiFunctionSelector.ps1
- Resources\Samples\Module.zip
- Public\New-PstModule.ps1
- Resources\Samples\Function-Complex.ps1
- Public\New-PstFunction.ps1
- Resources\Samples\Function-Basic.ps1
- Public\Get-PstAutomationMode.ps1
- Resources\Samples\Script-Moderate.ps1
- Public\Set-PstAutomationMode.ps1
- Resources\Samples\Script-Basic.ps1
- Public\New-PstModuleManifest.ps1
- Resources\Samples\Script-Complex.ps1
- Private\Get-PstPublicFunction.ps1
- Resources\Samples\Function-Moderate.ps1
- Private\Get-FileHashtable.ps1
- Resources\XAML\PstFunctionSelector.xaml
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.2.0 (current version) | 6 | 11/10/2025 |
| 1.0.3 | 11 | 9/20/2025 |
| 1.0.2 | 8 | 9/14/2025 |
| 1.0.1 | 5 | 9/14/2025 |