Improve executing other scripts

This commit is contained in:
Markus Fleschutz
2021-04-07 14:45:10 +02:00
parent 6cf41e4221
commit 381c3b850f
6 changed files with 15 additions and 15 deletions

View File

@ -14,9 +14,9 @@ if ($IPaddress -eq "" ) {
try {
for ([int]$i = 0; $i -lt 1000; $i++) {
& ./switch-shelly1.ps1 $IPaddress on 0
& "$PSScriptRoot/switch-shelly1.ps1" $IPaddress on 0
start-sleep -s 10
& ./switch-shelly1.ps1 $IPaddress off 0
& "$PSScriptRoot/switch-shelly1.ps1" $IPaddress off 0
start-sleep -s 60
}
write-host -foregroundColor green "Done."