Frančišek baron Trenk, vodja pandurjev