What I am looking for is a Powershell version of this: Time condition loop in shell
So I can have something like this:
if(Condition -eq True){
for(3000){ #I assume it will use milliseconds
COMMAND
}
}
EDIT: This will not be running continuously, unlike the example, it could be triggered at any time, and when the time ends, it should exit out of the loop and resume the program as normal.