Custom function to do a specific job without atlas

Hi,

Is there anyway to create custom job or function without atlas to pull data from windows machine to mongodb .

This function should be called from client applications .

Thanks…