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: 
Apparently there is no way to directly add cases to an SPSS dataset through syntax.
But the following seems to me pretty close - you don't create new files but you create a new dataset and add it to your original.

Let's first create a small data to demonstrate on: 

```
Data list list/ID (a5) var1 var2 var3 (3f2).
begin data
"first"    1    17   7
"secnd"    5    5    12
"third"    34   11   91
end data.
dataset name originalDataset.

```

So this is your original data. Now imaging that you want to add a new case to the data, with the ID value of "hello" and the number 42 in all the columns. This is what you do:

```
* creating the new case in a separate dataset.
Data list list/ID (a5) var1 var2 var3 (3f2).
begin data
    "hello"    42    42   42
end data.
dataset name addition.
* going back to original dataset and adding the new case.
dataset activate originalDataset.
add files /file=* /file=addition.
exe.
dataset close addition.

```
Check out the ADD FILES command. You can also add cases with Python code.