writeLog : The term 'writeLog' is not recognized as the name of a cmdlet, function, script file, or operable program

Connecting #2 Oracle DB…
Oracle DB connected fetching Data…
Calling: D:\apps\scheduledtasks\dashboard\hw.ps1
D:\apps\scheduledtasks\dashboard\commonFunctions.ps1
writeLog : The term ‘writeLog’ 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 D:\apps\scheduledtasks\dashboard\hw.ps1:73 char:5

  • writeLog ("ERROR: XML $scenarioName.xml File was not found. Error ...
    
  • ~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (writeLog:String) , CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

writeLog : The term ‘writeLog’ 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 D:\apps\scheduledtasks\dashboard\hw.ps1:76 char:1

  • writeLog (" ");
  •   + CategoryInfo          : ObjectNotFound: (writeLog:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

writeLog : The term ‘writeLog’ 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 D:\apps\scheduledtasks\dashboard\hw.ps1:77 char:1

  • writeLog (“INFO: Running job”);
  •   + CategoryInfo          : ObjectNotFound: (writeLog:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

sendApiRequest : The term ‘sendApiRequest’ 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 D:\apps\scheduledtasks\dashboard\hw.ps1:349 char:1

  • sendApiRequest
  •   + CategoryInfo          : ObjectNotFound: (sendApiRequest:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

writeLog : The term ‘writeLog’ 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 D:\apps\scheduledtasks\dashboard\hw.ps1:351 char:1

  • writeLog (“INFO: Done.”)
  •   + CategoryInfo          : ObjectNotFound: (writeLog:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Again …

When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org <---- Click :point_up_2:t4: :wink:

Please start with learning the very basics of PowerShell first. That includes how to debug your own code. And it will save you from a lot of wasted time and frustrations.

1 Like