The command for creating a FAT32 filesystem is something like this:
/sbin/mkfs.vfat -F 32 /dev/hdb2
I don't know if you have to set the partition type with fdisk or a similar partition manipulation program first. And of course you need to do the usual create a mount point and do a mount command.
Explore the Core!