Powershell Script To Execute Sql Function