$ErrorActionPreference = "Stop" $debuggingYaml = "$PSScriptRoot/debugging/docker-compose.yml" $recyclarrYaml = "$PSScriptRoot/../docker-compose.yml" # Start the corresponding radarr/sonarr docker containers for testing/debugging docker compose -f $debuggingYaml up -d --pull always if ($LASTEXITCODE -ne 0) { throw "docker compose up failed" } docker compose -f $recyclarrYaml run --rm --build app @args if ($LASTEXITCODE -ne 0) { throw "docker compose run failed" }