"Do you want to do this recursively?"

$Recursive = Read-Host "Do you want to do this recursively?"

"What directory do you want to look in?"

$Dir = Read-Host "What directory do you want to look in?"