脚本定期自动运行(非任务计划)

$i =1
for ($i = 1;$i -gt 0;$i++)
{
write-host $i
start-sleep -Seconds 3
}

原文地址:https://www.cnblogs.com/dreamer-fish/p/3745108.html