A long-time skeptic on Tesla Inc. ‘s stock, UBS analyst Patrick Hummel, has more than doubled his stock price target, saying the narrative is no longer about the company’s leadership in electric vehicles, it’s about “winning” in software.