Image to Gcode: How to make Gcode working?

Hello members,

I have an SVG Image, I have created a Gcode from the image using Grasshopper Rhino 7. For some reason I do not want to use STL model.
I want to run this Gcode on a Ultimaker s5 machine.
So I copied the header and end of the Ultimaker s5 Gcode to my Gcode.
Basically I tried to match my Gcode with a Gcode created by Cura for Ultimaker s5 using a random STL.
But the problem is machine is not accepting that Gcode. What should be the problem?
Machine shows the printing has started but does not make any movement.