Fix the log of issueCommand is overwritten

Add generateUniqueFileName to avoid such case