Azurepowershell.com
A System Administrator's Notebook
Example on how you can create a Powershell loop in scripts using do/while and try/catch.