Could you give an example from your script on how you are running the troubleshooting pack?
This is stated in the help file for “Get-TroubleshootingPack”:
Example 4: Generate an answer file
Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio" -AnswerFile "AudioAnswerFile.xml"
This command uses the Get-TroubleshootingPack cmdlet to generate an answer file. The Areo troubleshooting pack provides
a series of questions for the user to describe the troubleshooting situation and saves that information in the specified XML file.
This is stated in the help file for “Invoke-TroubleshootingPack”:
Example 3: Run a troubleshooting pack in unattended mode
$Audio = Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio"
Invoke-TroubleshootingPack -Pack $Audio -AnswerFile "AudioAnswerFile.xml" -Unattended
This example runs the Audio pack in unattended mode with a specified answer file.
The first command uses the Get-TroubleshootingPack cmdlet to get a DiagPack object and stores it in the $Audio variable.
The second command invokes the troubleshooting pack stored in $Audio in unattended mode. The command specifies an answer
file, previously created by using the Get-TroubleshootingPack cmdlet.
I can’t test this on your specific diagcab but you could try to run the first example I showed you and then the second one, with your specific paths of course.