PowerCLI to Generate Nested VM Folder Structure
First create a txt file named folders.txt with the folder structure as below.
Note: You must have the first line:
TestDataCenter\VM TestDataCenter\WebApp TestDataCenter\SQL TestDataCenter\WebApp\Prod TestDataCenter\WebApp\Stage TestDataCenter\WebApp\Uat TestDataCenter\SQL\Prod TestDataCenter\SQL\Stage TestDataCenter\SQL\Uat