here is a good loop shell command you can run:

for ($i) {
Get-Service wsbexchange | Set-Service -Startuptype manual
Get-Service MSEx* | Set-Service -Startuptype manual
$i++
$i
start-sleep -seconds 1
}