The initialisation and the formatting of the new harddisk needs to be done inside the guest OS.
You can use the Invoke-VMScript cmdlet to launch a PowerShell script inside the guest OS.
You can find a good sample script to initialise and format a harddisk in Use PowerShell to Initialize Raw Disks and to Partition and Format Volumes