Add-AppxPackage : Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it modifies are currently in use.
error 0x80004004: Unable to install because the following apps need to be closed Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI.
NOTE: For additional information, look for [ActivityId] 997b1cc5-4eb4-0000-161f-7c99b44ed101 in the Event Log or use the command line Get-AppxLog -ActivityID 997b1cc5-4eb4-0000-161f-7c99b44ed101
At line:1 char:38
+ ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (C:WindowsSyst...ppXManifest.xml:String) [Add-AppxPackage], Exception
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand