fixed generate command and added windows command