How to make a simple delayed start for a Powershell script

This is a simple script to make a delayed start for a Powershell script.

$Start = "07:00"
Write-Host "Waiting for the time to be $Start"
Do
{
Start-Sleep -Seconds 60
$Time = Get-Date -UFormat %H:%M
}
Until ($Time -eq $Start)
Write-Host "Starting, the time is $Time"
This entry was posted in Powershell and tagged , . Bookmark the permalink.