Uninstallation Failed - Incorrect function

Uninstallation Failed - Incorrect function

Im trying to uninstall Sophos cloud agent using this command either as a batch file or directly in an exe package. Results show failed and the remark is "Uninstallation Failed - Incorrect function" but the Sophos is actually removed from the target computer. 
"C:\Program Files\Sophos\Sophos Endpoint Agent\ run uninstallgui.exe" --quiet

                  New to ADSelfService Plus?