Why plugins dont show up when software is launched via Command-line

I ran into this same issue running python scripts from the commandline.
Turn out it was caused by me running with the -Unattended flag enabled, when I removed the flag it fixed the issue!