In bash, the equivalent would be for x in `ls *.zip` do ; unzip $x ; done How do I do this in Windows Powershell. **Update** As Johannes Rössel pointed out this is a bad example (unzip *.zip) but what I'm after is the "foreachness" of it.