Sorry, last sentence should be "without user input".
see sfdisk which can accept input as one line per partition
as per it's man page:
sfdisk reads lines of the form
<start> <size> <id> <bootable> <c,h,s> <c,h,s>
where each line fills one partition descriptor.
John