Partition the System disk without earsing the OS during application deployment

New Contributor III

Hello all,
Hope you all doing safe and well.

Is there any payload or workflow that can be used to add a partition to a system disk (Macintosh HD) for storing temporary data for students. I want to do this during application deployment to our labs. I am do this by erasing the whole disk and partitioning and then installing OS in one of the volumes and leaving the other one for data, but I want to ignore erasing the disk as it is time consuming.
I believe there is a command line that can be use (diskutil) but I can’t find the arguments that I can use to add partition without erasing the disk.
Thanks for your help in advance. Most probably the method that I will use will be mixture of intel and Apple Silicon computers.