Creating Scripts For Powershell Version 3