if I want to run PS script several times, I can use windows scheduler, but what if I need to run several times certain part of code, not whole script?
I have script to monitor remote server and I need to check processor time every second and the amount of ram every minute. I don’t want to split it to more separate scripts, because I’m monitoring dozens of values. Or do you have some different idea of resolvint that?
Thank you!
You perhaps can use WMI timer for that
Remark : Another solution is to use Windows Forms timer