Sql Server Function Declare Variable Powershell Update