You can use WMIC to manipulate installed programs. From an elevated cmd prompt:
1. To get a list of installed programs:
wmic product get name
2. To uninstall an installed program:
wmic product where name="<PROGRAM NAME HERE>" call uninstall /nointeractive
wmic product where "name like '<PROGRAM NAME HERE>%%'" call uninstall /nointeractive
3. To do the above on a remote computer add the /node parameter. An IP address can be used:
wmic /node:<HOSTNAME HERE> product get name
wmic /node:<HOSTNAME HERE> product where "name like '<PROGRAM NAME HERE>%%'" call uninstall /nointeractive
N.B. WMIC is not interactive. When using the /node parameter, it will return results, but if your command requires input you won't be able to do it on the computer you are running wmic from.