Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.186
Language: C# Updated: 2026-11-04
Command

New-ManagedScriptFileInfo

Module
PSPublishModule
Inputs
None

Creates a PowerShell script file with PSResourceGet-compatible PSScriptInfo metadata.

Syntax

New-ManagedScriptFileInfo
[-Author <String>]
[-CompanyName <String>]
[-Copyright <String>]
-Description <String>
[-ExternalModuleDependencies <String[]>]
[-ExternalScriptDependencies <String[]>]
[-Force]
[-Guid <Guid>]
[-IconUri <String>]
[-LicenseUri <String>]
[-Path] <String>
[-PrivateData <String>]
[-ProjectUri <String>]
[-ReleaseNotes <String>]
[-RequiredModules <Hashtable[]>]
[-RequiredScripts <String[]>]
[-Tags <String[]>]
[-Version <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Example 1

New-ManagedScriptFileInfo -Description 'Value'

Parameters

-Author String optional
Script author.
-CompanyName String optional
Company name.
Copyright text.
-Description String required
Script description stored in comment-based help.
-ExternalModuleDependencies String[] optional
External module dependencies.
-ExternalScriptDependencies String[] optional
External script dependencies.
-Force SwitchParameter optional
Overwrite an existing script file.
-Guid Guid optional
Script metadata GUID. A new GUID is generated when omitted.
-IconUri String optional
Icon URI.
-LicenseUri String optional
License URI.
-Path String requiredposition: 0
Path to the script file to create.
-PrivateData String optional
Private data text.
-ProjectUri String optional
Project URI.
-ReleaseNotes String optional
Release notes text.
-RequiredModules Hashtable[] optional
Required modules as PSResourceGet-style hashtables.
-RequiredScripts String[] optional
Required script dependencies.
-Tags String[] optional
Search tags.
-Version String optional
Script version. Defaults to 1.0.0.0.

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.