https://learn.microsoft.com/en-us/uwp/api/windows.management.deployment.updatesharedpackagecontaineroptions.forceappshutdown?view=winrt-26100
UpdateSharedPackageContainerOptions.ForceAppShutdown Property (Windows.Management.Deployment) -...
Gets or sets a value specifying whether apps with packages in the created shared container should be shut down as part of the container update operation.
windows managementpropertydeployment