API Reference
Command
New-ManagedScriptFileInfo
Creates a PowerShell script file with PSResourceGet-compatible PSScriptInfo metadata.
Remarks
Creates a PowerShell script file with PSResourceGet-compatible PSScriptInfo metadata.
Examples
EXAMPLE 1
New-ManagedScriptFileInfo -Description 'Value'
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.
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 SetsParameters
- Author String
- Script author.
- CompanyName String
- Company name.
- Copyright String
- Copyright text.
- Description String
- Script description stored in comment-based help.
- ExternalModuleDependencies String[]
- External module dependencies.
- ExternalScriptDependencies String[]
- External script dependencies.
- Force SwitchParameter
- Overwrite an existing script file.
- Guid Guid
- Script metadata GUID. A new GUID is generated when omitted.
- IconUri String
- Icon URI.
- LicenseUri String
- License URI.
- Path String
- Path to the script file to create.
- PrivateData String
- Private data text.
- ProjectUri String
- Project URI.
- ReleaseNotes String
- Release notes text.
- RequiredModules Hashtable[]
- Required modules as PSResourceGet-style hashtables.
- RequiredScripts String[]
- Required script dependencies.
- Tags String[]
- Search tags.
- Version String
- Script version. Defaults to 1.0.0.0.