TFS exposes a commmand line utility which covers most of the areas. However I am creating a script which will create the folder and branch structure within a specified proje
The question is answered in more detail on the MSDN forums
TL;DR
You can use the tfpt branches /convertToBranch from the power tools
tfpt branches /convertToBranch