Function naming and calling conventions
It is recommended to use the “approved” naming convention when creating functions (Verb-Noun):
# get list of approved verbsGet-Verb
# simple function examplefunction Start-InitializeSDK { $script:cms=New-Object -ComObject "CapaInstaller.SDK" $script:cms.SetDatabaseSettings($global:databaseserver,$global:database,$false) Write-Host $script:cms.GetDllVersion() $script:cms.SetInstanceManagementPoint($global:cmpid) $script:cms.GetManagementPoints() $script:cms.SetSplitter("|")}When calling functions, never use “( )” parentheses:
# CorrectStart-InitializeSDK# WrongStart-InitializeSDK()