Virat Kohli struck a half-century against Punjab Kings in his first match as Royal Challengers Bangalore skipper since 2021.