Enhance windows script.
Add query shell script for Windows.
Make key optional for a query.