Add-AppxPackage command to work from the instantiated PowerShell. I retrieve errors from ps.Streams.Errors.{The 'Add-AppxPackage' command was found in the module 'Appx', but the module could not be loaded. For more information, run 'Import-Module Appx'.}.scriptContents.AppendLine("Import-Module Appx");.{Operation is not supported on this platform. (0x80131539)}.scriptContents.AppendLine("Import-Module Appx -UseWindowsPowerShell");.{The 'Add-AppxPackage' command was found in the module 'Appx', but the module could not be loaded. For more information, run 'Import-Module Appx'.}.