Sql Server Function Declare Variable Powershell