Basically I have a script that runs and it Start-Sleep for 30 minutes then loops around again and re-runs. I was wondering if there was a way where you could click on the window, press a hotkey, and have it just refresh manually?
while($true){
$data = @("device1", "device2")
ForEach ($server in $data) {
ping $server
start-sleep 1800
clear
}
}