Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Function not recognized?

$
0
0

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


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>