One can open "Script Editor" and create the following script:
tell application "Terminal"
do script "gnumeric;exit"
end tell
Save it as "Application" format in Applications. One might want to set Terminal to close window upon successful application exit, so that the Terminal window doesn't linger.
This works on MacOS 15.4.1, but the recipe should work on older versions also.