mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 06:02:56 +02:00
Improve executing other scripts
This commit is contained in:
@ -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."
|
||||
|
Reference in New Issue
Block a user