Here's the answer on the forum. Unity Forum . Some of the variables are unexplained, but you can figure that if you declare the variables beforehand then you can probably figure it out. Take out the word thumb and you basically have the type of object it should be. Also it is written in Javascript but I only saw one or two lines that needed to be changed to work in C#.
Also check out Application.CaptureScreenShot. It won't capture the second camera, but I'm not sure what or how you are using the render texture so you may just want to run the game in the editor if you want a specific image and capture the screen.