Question: Is there a way I can uninstall programs without the graphical interface and doing it via CMD?

Answer: 
Every program that properly installs itself according to Microsoft's guidelines makes a registry entry in `HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall`. Usually, the key for the program will be its GUID, or else the name of the program. Within that key will be an entry called `UninstallString`. This contains the command to execute to uninstall the program. 

If you already know ahead of time what you will be uninstalling, it should be easy enough to just put that in your batch file. It gets tricky when you try to automate that process though. You can use the `reg` command to get data from the registry, but it returns a lot of text around the actual value of a given key, making it hard to use. You may want to experiment with using VBscript or PowerShell, as they have better options for getting data from the registry into a variable.
A VBScript script will help you to uninstall the require program.

To use this script you will require software name which is located in your registry.

Just enter the application name in the script and run it with admin privileges; it will uninstall the application. But this will only work for a window-based application; for standalone setup or apps which doesn't make an entry in the uninstall string of registry, the script will not work.

So in that case you will have to find another way to uninstall the application.

Code:

```
On error resume Next

Dim strName, WshShell, oReg, keyname

Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

'=============================================
'Change the value here with DisplayName's value
strName = " "
'=============================================
Set WshShell = CreateObject("WScript.Shell")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
    keyname = ""
       keyname = wshshell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & subkey & "\DisplayName")
    If keyname = strName then
        i = subkey
    End If
Next

If i Then

    WshShell.Run "MSIEXEC.EXE /X " & i & " /QN", 1, True
End If

Set WshShell = Nothing
set ObjReg = Nothing

WScript.Quit

```