After you create an app in Visual Studio you can build it by running msbuild. You don't need an additional build script.
https://docs.microsoft.com/en-us/windows/msix/desktop/deskto...
There is a way to launch packaged apps from the command line once you have registered them:
https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/autom...
Everything with packaged apps is harder, so I try to avoid it.