You might be able to use the M23 gcode, to execute another file, from within the primary gcode file. I am not sure if this will cause any problems though.
But to be able to use M23 from within a gcode file, would allow for the functionality that you request.
But to be able to use M23 from within a gcode file, would allow for the functionality that you request.