Sql Server Function Declare Variable Powershell Script To Access