checking the value  UseStoredProcForCreateAndCopyEvent  if -ne true (rather than checking for -eq false) then set it to true