You are probably looking for SetDisplayMode command. This can act on the active or all viewports and you can set the mode to wireframe, shaded, rendered, etc.
Also, there is the SetObjectDisplayMode to override the display mode for certain objects.