Templates/NewScript/build.ps1

#Requires -Modules psake
[cmdletbinding()]
param(
    [ValidateSet('Build','Test','Clean','Analyze','Publish')]
    [string[]]$Task = 'Build'
)

Import-Module psake;Import-Module Pester;Import-Module PSScriptAnalyzer
Invoke-psake -buildFile "$PSScriptRoot\build.psake.ps1" -taskList $Task -Verbose:$VerbosePreference