@echo off if "%TARGET_INSTANCE_ID%"=="" ( echo TARGET_INSTANCE_ID is not set exit /b 1 ) docker stop %TARGET_INSTANCE_ID%