I have a function that returns a folder name with full path, like C:\\Folder\\Subfolder.
I then extract the name of the subfolder using Split-Path.
It works like e