File Build.cmd in c# projects

Hi, I have a question about Build.cmd files that I often find in github projects;
Why do users create this file to build with msbuild instead of executing build directly from VS?
Are there any reasons to do this? Can anyone tell me the cases for which it is useful to use this technique?
Thanks

.NET Foundation Website | Blog | Projects | Code of Conduct