Uninstall Forescout secureconnector using bigfix

Hi there, pardon the bigfix noob here.

We are trying to uninstall Forescout SecureConnector application from endpoints. Strange thing is this application does not appear in Control Panel > Programs list.

We have found a solution which is to double-click on the “Uninstall” manually in the folder.

Have tried to create a script - waithidden “C:\Program Files\ForeScout SecureConnector\Uninstall” /qn

However, it seems to be not working.
Appreciate your help on this.

You are trying to run a shortcut for uninstall & additionally you have not provided the complete shortcut file name.

If you have tested it locally & silently by running shortcut method, you can replicate the same method something like below -

waithidden cmd.exe /C “C:\Program Files\ForeScout SecureConnector\Uninstall.lnk” /qn

OR

waithidden {value "UninstallString" of key whose (Value "DisplayName" of it as string as lowercase = "SecureConnecter") of Keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of ( x64 registries; x32 registries )}

OR

waithidden "C:\Program Files\ForeScout SecureConnector.exe" -uninstall