I want a code snippet to put into my profile that will always select the most recent folder.

```
(gci C:\Users\$env:username\Documents\releases | ? { $_.PSIsContainer } | sort CreationTime | Select-Object Name)[-1]

```

This is my output.

```none
Name
----
20201116_124047

```

I would like the output to be a string that I can place into a variable. I am on Powershell 5.1

20201116\_124047