Shotgun Desktop / Toolkit minimal configuration

I’m sorry nobody has got back to you sooner.
I would say either approach might work. I believe that Shotgun Desktop should preserve any environment variables set, and it will append to the PYTHONPATH rather than replacing it with its own values.

Typically we recommend using the before_app_launch.py to set env vars before launching software:
https://developer.shotgunsoftware.com/624f2593/

However, if you have a cmd approach already setup then perhaps running Desktop from your cmd would work for you, though you would need to be careful not to pass any environment variables through that might conflict with SG Desktop’s setup, such as paths to Python modules not suited to the Python interpreter shipped with Desktop.

You could also maybe modify the app_launch.py hook and modify the launch command so that it launches the software through your cmd tool. However here you would need to be careful to preserve and Shotgun environment variables that have been set.