function Uninstall-Application {
$appName = $($args[0])
Write "application to uninstall: $appName"
$uninstall32 = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -Match $appName }
$uninstall64 = gci "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match $appName }
if($uninstall32){
if($uninstall32.QuietUninstallString){
Write ("uninstall32 Quiet