Data directory C:\data\db\ not found

When it is running as service it is using default config file and using this path-D:\develop\DB\MongoDB\Server\4.2\data

Also it runs in background

But when you run it manually it looks for C:\data\db
and it runs in foreground
That’s why your session appears to be hung
So you have to open another cmd prompt and connect using mongo --port your_port

What exactly you mean by unresponsive prompt
It would have given some message

Config file can be at same location or a different location but when you start mongod give the full path and change the dirpath to new path
You changed the port but left the dbpath same as the one being used when it runs as service

Did you try a simple command line method?

mongod --dbpath your_homedir --port 28001 --logpath your_homedir/mongod.log

You can try above by config file also

mongod -f path_to_your_homedir mongod.conf
Here i am assumng your config file resides in your home dir