Two line of code can automate cutting stuff
=> you can embed script into your action but you should know that action can be paused via stop command but script don't usually wait for such kind of stuff but for workaround you can load your stuffs via
batch processing - your main which only loads your shapes
=> now save this code as run.jsx and put it in your illustrator folder
C:\Program Files\Adobe\Adobe Illustrator CC 2019\Presets\en_US\Scripts and restart illustrator and then you can follow below image
Image Explaination : Basically i had blank action named "Your main action" which in your case can be anything which just load any files or stuffs just keep in mind that you have nothing selected once action completes and then just create new action names
"Cutting Action" and add Run.jsx in action and assign any shortcut "F2" in my case!
Now all you have to draw the line by pencil tool and press F2 and see magic happen!
it can cut the one object in hundreds of parts!!