Using cmd to create command-line applications