Back again asking for your all professional tips and advices.

I'm looking for ways how can I do some scripts / powershell ones or whatever in Windows Server 2008 with IIS 7 + FTP 7 which does the following:
- create a subdomain to an existing one
- create a FTP site to the above subdomain
there a few other things to do but not now.
for the first one I have some like domain.com and I want to do a domain.com/site1 which has it's own ftp site as well.
I'm looking at appcmd now but can't find how/if I can create those types of subdomains with it.
Any help is greatly appreciated.
tks!