我有这段代码:
Write-S3Object `
-BucketName "abilitest-user-staging" `
-Key "content/bundles/$filename" `
-File "content/bundles/$filename" `
-HeaderCollection @{"Cache-Control" = "public,max-age=1200"}
有没有办法让PowerShell循环遍历content / bundles目录中的所有文件,并重复执行此代码,并在每个文件的名称替换为现在我有$ filename?