PowerShell supports several types of loops: for, foreach, while, and do-while. Letβs break 'em down:
for
foreach
while
do-while