Question: I am new to PowerShell scripting. For one of my School project I need to generate a report of the entire D Drive. I need to list all the folders sorted according to the size 

**Summary of the work I have done so far:** 
I have installed a PowerShell module from this website 
<https://www.gngrninja.com/script-ninja/2016/5/24/powershell-calculating-folder-sizes>
using Install-Module PSFolderSize 

After installing if I run the command ***Get-FolderSize*** I'm getting the FolderSize for the path I'm running from. The foldersize is not running for all the folders in the directory. 
I am facing difficulty traversing through all the folders.

Expected Output: 

```
+-------------+--------------+--------------+-----------+-----------------------+-----------+
| FolderName  | Size(Bytes)  |   Size(MB)   | Size(GB)  |       FullPath        | HostName  | 
+-------------+--------------+--------------+-----------+-----------------------+-----------+
| Disney      | 454545448889 | 433488.32024 | 423.32844 | D:\Videos\Disney      | localhost |  
| Universal   |  25454544884 | 24275.34569  | 23.70639  | D:\Videos\Universal   | localhost |  
| Fox Studios |   8803063287 | 8395.25536   | 8.19849   | D:\Videos\Fox Studios | localhost |  
+-------------+--------------+--------------+-----------+-----------------------+-----------+

```

Can anyone help me where to start?

Answer: 
You don't have to create data in the first data set. Just create the variables and define them however you want.

```
DATASET CLOSE ALL.

INPUT PROGRAM.
NUMERIC My_Variable (F1).
VARIABLE LABELS My_Variable "I want this!".
VALUE LABELS My_Variable 1 "Yes" 2 "No".
END FILE.
END INPUT PROGRAM.
DATASET NAME Empty.

DATA LIST FREE /My_Variable.
BEGIN DATA.
1 2
END DATA.

APPLY DICTIONARY /FROM Empty
 /SOURCE VARIABLES=My_Variable
 /TARGET VARIABLES=My_Variable
 /VARINFO VALLABELS=REPLACE VARLABEL.
DATASET CLOSE Empty.

FREQUENCIES VARIABLES ALL.

```

I used DATASET but you could have save the empty file to disk.
See the APPLY DICTIONARY command for more details about how it works.
Check out the ADD FILES command. You can also add cases with Python code.