# New-ManagedScriptFileInfo

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

Project

PSPublishModule

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

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**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>]
```

[#](#method-new-managedscriptfileinfo-string-string-string-string-string-string-switchparameter-guid-string-string-string-string-string-string-hashtable-string-string-string)

Parameter set: `All Parameter Sets`

## Examples

### Example 1

```powershell
New-ManagedScriptFileInfo -Description 'Value'
```

## Parameters

**-Author String optional**

Script author.

**-CompanyName String optional**

Company name.

**-Copyright String optional**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:8226CAB25EDF7495AD7BAD954981D936724882164ADDA9083C132BC3D3AC398D -->
