Fixes NRE using mock debug logging when Should-Invoke with -ParameterFilter is used for a mocked native application. Caused by variable conflict-logging looking for CommandMetaData which doesn't exist for external commands = N/A logging.
Fix #2479
Backport to 5.6.0
PR Checklist
[x] PR has meaningful title
[x] Summary describes changes
[x] PR is ready to be merged
If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
PR Summary
Fixes NRE using mock debug logging when
Should-Invoke
with-ParameterFilter
is used for a mocked native application. Caused by variable conflict-logging looking for CommandMetaData which doesn't exist for external commands = N/A logging.Fix #2479
Backport to 5.6.0
PR Checklist
Create Pull Request
to mark it as a draft. PR can be markedReady for review
when it's ready.