Sql Server Function Declare Variable Powershell Activate Script