I have a function defined at the bottom of my script that has a signature like:
function Get-Properties($root, $nsmgr, $entityType, $modelNamespace)
Then up above I call it like
$propertyCollection = Get-Properties $root $nsmgr $entityType $modelNamespace
But I am getting an error that I don't know what to do with
Get-Properties : The term 'Get-Properties' 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:\Users\Kevinb\Script\web.ps1:28 char:25
+ $propertyCollection = Get-Properties $root $nsmgr $entityType $modelNamespace
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Properties:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I have other functions that are called but for some reason this function is not recognized.
Ideas?
Kevin Burton