I am trying to run the below line in the Azure pipeline Powershell script.
- task: PowerShell@2
displayName: 'Run test sequence'
inputs:
targetType: 'inline'
script: |
Write-Host "Running test sequence..."
$AppConfig = "$(System.DefaultWorkingDirectory)\myapplicationfile.xml"
$RunMcsProduct = "$(System.DefaultWorkingDirectory)\myapplicationFolder"
$SimulatedQuickDeviceConfig = "$(System.DefaultWorkingDirectory)\myDevicefile.xml"
# Run Product exe with arguments
$exeArguments = $AppConfig , $SimulatedQuickDeviceConfig
Set-Location -Path $RunMcsProduct
$appCmd = ".\myapplication.exe"
"init-instrument" | & $appCmd $exeArguments
Write-Host "Complete."
And when the pipeline runs I get the following error. (Sorry I cannot show the entire log due to some sensitive information in the log.
However, the same script I can execute successfully on my local computer.

command1to run?