Write a comprehensive research paper on the various potential therapeutic applications of transcranial magnetic stimulation, including its effectiveness in treating various mental health conditions, its potential for enhancing cognitive function, and its potential as a tool for pain management. Your report should incorporate relevant literature and research, as well as consider the limitations and future directions of this emerging technology. Provide a clear and concise summary of your findings and recommendations for future research.
This prompt doesn't seem malicious.