@gajahduduk, the sendresult.sh script is not executable by default, so you could probably solve it by running this:
chmod +x ~/.TRIGGERcmdData/sendresult.sh
Or make your command:
osascript -e 'tell application "Music" to set result to "This song is " & name of current track & " by " & artist of current track & " on the " & year of current track & " album " & album of current track' | sed 's/^/"/;s/$/"/' | xargs -I{} bash ~/.TRIGGERcmdData/sendresult.sh {}
If you run a command like this:
curl 'https://TRIGGERcmd.com/api/run/trigger?computer=maclaptop&trigger=result&token=(your token)'
... and your command has {{result}} in the Voice Reply field, you'll get a response like this:
{"message":"Trigger sent. Result was: YOURRESULT"}
So your Shortcut will need to parse that message using "Get Dictionary Value".
This post has some detail about it.
Actually, I'll change that response to the following to make it easier to get the command's result.
{"message":"Trigger sent. Result was: YOURRESULT", "result":"YOURRESULT"}