I'm not sure how the lock works in Windows 10, but I'd like to access the features of locking my screen after a CMD process has been executed. As the CMD window would already be running before the screen is locked, does this mean it would continue running once the screen is locked?

If not I'd be interested to know how to allow this. There are other articles that describe how to [enable background apps](https://answers.microsoft.com/en-us/windows/forum/all/how-do-windows-run-background-apps-after-lock/48ece26f-302c-4d84-815d-4544ed27e968?auth=1) using Windows Settings, but there is no mention of how I might accomplish this for custom apps or even a simple CMD window process.

Is it possible to lock Windows 10 while also allowing a CMD window to continue running, or does it simply keep running anyways?