How to use powershell or any programming language to use QSDA pro API to do app analysis

We are in process of migrating apps from qliksense enterprise to qlik SaaS enterprise. Instead of just migrating the apps to SaaS, we would like to have certain criteria checked to allow app to be moved into SaaS. We thought of using QSDA pro API, but in command line mode where we can create script to connect to QSDA pro and do analysis.
But unfortunately I struck at beginning only, so if anybody had implemented similar command line for QSDA pro, can you please share sample code that can connect to QSDA pro using any of the connection and do analysis on app.