俺はDOSのBATファイルでやってる。

@echo off
echo Content-Type: text/plain
echo.
echo Hello, CGI!