You do realise that FortiClient uninstaller does all that, and is
normally already installed. This is my script I use in Jamf Pro:
#!/bin/sh
OldUnInstaller="/Applications/FortiClientUninstaller.app/Contents/MacOS/Uninstall"
UnInstaller="/Applications...
You are leaving our website
You are leaving our site and we cannot be held responsible for the content of external websites