Rendering diffuse, specular maps of a 3d model

Script to render a 3d object from different camera angles, along with normal/albedo/depth maps.
How can I render diffuse, mask and specular maps as well. The online tutorials on map generation explain the technique of converting one map to another(like diffuse to specular), rather than rendering a 3d model along with all the maps.