As far as I’m aware this isn’t possible (e.g. no such command line function, or passage of any password) or advisable.

If you could uninstall by command line, there would be nothing to stop malware doing the same.