And what am I doing here?
Create a config file (C:\MongoDB\mongod.cfg) defining those paths
systemLog: destination: file path: C:\MongoDB\logs\mongod.log storage: dbPath: C:\MongoDB\data\db
Install the MongoDB service bash mongod.exe --config "C:\MongoDB\mongod.cfg" --install