Powershell do while loop sleep. Here's the overview of what I want to do.

Powershell do while loop sleep. I did have them as else-ifs but changed it to troubleshoot.