I am familiar with how BASH syntax handles this request but I am unable to find a way to do this in PowerShell.
BASH Example:
for x in `ls .`; do something with ${x}; done
What I am trying to perform the same thing with PowerShell (which has the incorrect syntax for demonstration purposes)...
ForEach ($group in `$wsus.GetComputerTargetGroups()`)
...I obviously get a syntax error.
BASH to PowerShell translation is the ask here. :D