Feature detect Docker for Windows?

Connecting to the named pipe doesn’t work for me. This PowerShell snippet:

$pipe = new-object System.IO.Pipes.NamedPipeClientStream("\\.\pipe\docker_engine")
$pipe.Connect()

…just hangs. Using npipe:////./pipe/docker_engine as the FAQ suggests gives me an error about incorrect format.

Process Explorer doesn’t find any named pipe with “docker_engine” in the name.

However, connecting to http://localhost:2375 works. Maybe that’s the best approach after all.