Create Use the Import-Document cmdlet again to move the content into a destination folder. Let’s say I want to create the following directories: C:/Program Files/MiKTeX 2.9/tex/latex/math using PowerShell because, as you may guess it, it’s a Windows directory structure. Create folder structure using powershell with AD permission Summary: Microsoft Scripting Guy, Ed Wilson, talks about exporting a directory list to a CSV file and opening the file in Microsoft Excel with Windows PowerShell.. Hey, Scripting Guy! We can create other files using the same functions as well. You can create the file in Notepad and save it with the CSV extension. First, to create a CSV file in PowerShell, we need to create headers for it. Learn Four Ways to Use PowerShell to Create Folders Export/Write Data From PowerShell Into CSV (Comma Separated Values) File. Role-based administration control “ready” as explained earlier. (repeat as needed) As per your description, to create folders and sub folder using PowerShell script I search a lot and here I find below script you may refer and see if meet your requirement.