It is not mean to to be implemented into filament gcode, but startup of the printer.
While this works, I would suggest read up a little on the matter to gain better understanding before doing such big changes on your machine.
3 Likes