Code:
$FileName = Dir($Directory + $Folder, 1) 



Isn't that the one?