Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Powershell Example 1
$Cars = "Tyota","Hyundai","Ford"
#Foreach within the Array
$Cars | ForEach-Object { $_ }
#Foreach within the Array simpler
$Cars | ForEach { $_ }
#Foreach within the Array much simpler
$Cars | % { $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment