If the script won't run it's probably not in your path. You can either create a bin directory in your path like I described above or type the full path on the PowerShell command line. For example to run a hello world script hello.ps1 in the non-path directory d:\xfers:
Code:
D:\> D:\xfers\hello.ps1
hello world
Note that to call a script in the current working directory you need to supply a leading ".\". In other words, PowerShell doesn't automatically add the current working directory to your path.
Code:
D:\> cd d:\xfers
xfers> .\hello.ps1
hello world
Connect With Us