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...