Running Onedrive in Background

There can be situations where you want that Ondrive runs in the background, for example for some process or automation to complete. On researching internet , I have seen people are having issues to implement or are able to do it only when account is login to the system and as soon as it is…