This is answered in Launch Diagnostics/Console From Client. Use this script:
from com.inductiveautomation.factorypmi.application import FPMIApp
FPMIApp.getInstance().showFPMIDiagnostics()
Sorry for necrobumping, but I want to make sure I can quickly find the answer the next time I search for this and for whatever reason I found this thread with my initial searches but not the other thread.