First step to scripting in PowerShell is setting the execution policy to RemoteSigned. That way any script that came from your hard drive can be executed.
Set-ExecutionPolicy RemoteSigned
For more info see: http://technet.microsoft.com/en-us/library/ee176961.aspx