I have requirement to download files from simple storage service to local folder and count the no.of files in local folder and check against simple storage service then send mai
Since this question is one of the top Google results for "powershell download s3 files" I'm going to answer the question in the title (even though the actual question text is different):
Read-S3Object -BucketName "my-s3-bucket" -KeyPrefix "path/to/directory" -Folder .
You might need to call Set-AWSCredentials
if it's not a public bucket.