When you are in the PowerShell shell environment, executing a script can be a bit of a pain. Normally you need to type the entire path to get the script to execute. For example, you may need to type C:\Users\JohnDoe\Scripts\Myscript.ps1. You do not have to do this. If you are in the directory that the script resides, simple type .\MyScript.ps1 and it will execute
Reference: http://technet.microsoft.com/en-us/library/ee176949.aspx
Reference: http://technet.microsoft.com/en-us/library/ee176949.aspx
Comments