FileManager-Action: Render with command line

I’m using Nautilus on Zorin OS (based on Ubuntu) and I’m trying to create a right-click menu to render a file with the command line with FileManager-Action.
But I can’t get it to work, anybody any knowledge on FileManager-actions?

This is how I did it

#!/bin/bash
# '$@': the quotes are added to handle files with spaces
gnome-terminal -- bash -c "bash '/home/myRender.sh' '$@'; echo -e '\n\nPress ENTER to close'; read line"