use vi editor and write commands for creation of partition and then run it.
Register Hereor login if you are already a member
I can understand your interest in Shell Scripting . But Creating a new Partition is always a critical task . It is recommended to do it manually always as Linux admin .
But Still if u wanna a make script for time saving purpose or for some Coding .Go with LVM partition it is handle . If u want i can share script for LVM partition created and Deleted .