How To Use Foreach Loop In Powershell Version Command For Powershell