You know it’s time to knock it on the head for the day when you do this:

    while ($LoadFailed = $True) {

#Powershell

(it should be -eq. Using ‘=’ assigns the value, so the while condition is always true and you get an infinite loop. Lovely.)