Script giving me response in Powers shell ISE but getting Error message that HelpList is not recognized as the name of a cmdlet' Below is script.
param($param1 = '')
if($param1 -eq '' )
{
HelpList
}
function HelpList()
{
Write-Host "DevelopmentBuild.ps1 help"
}
function clean()
{
Write-Host "Cleaning solution"
}
Below is Error when running from Powershell console.
PS C:\WorkSpace\Dev> .\deploymentScript.ps1
HelpList : The term 'HelpList' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\WorkSpace\Dev\deploymentScript.ps1:17 char:13
+ default{HelpList}
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HelpList:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException