When i did the second command, i got this.
Add-AppxPackage : Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it
modifies are currently in use.
error 0x80073D02: Unable to install because the following apps need to be closed Microsoft.YourPhone_1.23032.186.0_x64__8wekyb3d8bbwe. NOTE: For additional information, look for [ActivityId] e5cce386-8e22-0004-e6fd-cee5228ed901 in the Event Log or use the command line Get-AppPackageLog -ActivityID e5cce386-8e22-0004-e6fd-cee5228ed901 At line:1 char:38 + ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.I ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (C:\Program File...ppXManifest.xml:String) [Add-AppxPackage], Exception + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
it also showed my that many apps are using the resources.