Convert Powershell To Bash Script For Loop