I don't actually want to run a remote script as much as I simply would prefer that WebDirect would NOT attempt to open the FileMaker app. I have tried adding an IF statement to swap the "fmp://" to be "https://" but this does not seem to work. After clearing the caches, I have what looks like a spinning progress bar.

This isn't the way to go. FMP URLs are not supported by WebDirect, and you don't want to have to spawn windows for scripts and stuff by trying to use an HTTP:// link (regardless of potential to work or not).

The current *best* way to go (opinion) is by using Custom Web Publishing to perform a script. The CWP PHP API is capable of performing a script. I usually setup a simple "script handler" php file that performs scripts for me via parameter.