Because of this reason I got this error message from PowerShell whenever I tried to run some scripts:
The term 'test.ps1' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At line:1 char:7 + test.ps1 <<<<That is why I decided to cover this error message for me once and for all :)
Article below describe it very well.
http://technet.microsoft.com/en-us/library/ee176949.aspx