Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Issue while executing powershell script

$
0
0

test.ps  contains 

$letterArray = "a","b","c","d"

          foreach ($letter in $letterArray)

          {

              Write-Host $letter

          }

---------------------------------------------------------------------------------------------------------------------

PS C:\> c:\test.ps1

The term 'c:\test.ps1' 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 line:1 char:12

+ c:\test.ps1 <<<<

    + CategoryInfo          : ObjectNotFound: (c:\test.ps1:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles