< Back
New-AMPowerShellScript
Post
NAME New-AMPowerShellScript
SYNOPSIS
This function creates a new PowerShell Script and default Pester tests including default PSScriptAnalyser tests
for all files.
SYNTAX
New-AMPowerShellScript [-Name] <String> [-Path] <String> [-Author] <String> [-CompanyName] <String> [-Copyright]
<String> [-ScriptVersion] <String> [-Description] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Long description
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Author <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CompanyName <String>
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Copyright <String>
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ScriptVersion <String>
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Inputs to this cmdlet (if any)
OUTPUTS
Output from this cmdlet (if any)
NOTES
General notes
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-AMPowerShellScript -Name MyScript -Path C:\\MyPath -Verbose
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Another example of how to use this cmdlet
RELATED LINKS
SYNOPSIS
This function creates a new PowerShell Script and default Pester tests including default PSScriptAnalyser tests
for all files.
SYNTAX
New-AMPowerShellScript [-Name] <String> [-Path] <String> [-Author] <String> [-CompanyName] <String> [-Copyright]
<String> [-ScriptVersion] <String> [-Description] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Long description
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Author <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CompanyName <String>
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Copyright <String>
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ScriptVersion <String>
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Inputs to this cmdlet (if any)
OUTPUTS
Output from this cmdlet (if any)
NOTES
General notes
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-AMPowerShellScript -Name MyScript -Path C:\\MyPath -Verbose
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Another example of how to use this cmdlet
RELATED LINKS