# Micro-Lauf beenden: Laeufer sanft stoppen (steht nach der Hand auf) und die Spielgeld-Sperre zuruecklegen. # powershell -ExecutionPolicy Bypass -File betrieb\micro_stop.ps1 $ErrorActionPreference = 'Continue' $wurzel = Split-Path -Parent $PSScriptRoot try { $json = '{"aktion":"laeufer_stoppen"}' $r = Invoke-RestMethod -Uri 'http://127.0.0.1:8787/api/steuern' -Method Post ` -ContentType 'application/json; charset=utf-8' -Body ([Text.Encoding]::UTF8.GetBytes($json)) Write-Host ("laeufer_stoppen: {0}" -f $r.text) } catch { Write-Host "Cockpit-Server nicht erreichbar - Laeufer ggf. im Cockpit stoppen" } git -C $wurzel checkout -- betrieb/nur_uebung if (Test-Path (Join-Path $wurzel 'betrieb\nur_uebung')) { Write-Host "Spielgeld-Sperre liegt wieder" }