User has reported in our maillist that $MyInvocation throws NotImplementedException.
I've tried to reproduce but just getting empty output instead. Here's my example script I'm testing:
echo 1 # To check if output works at all
echo $MyInvocation.MyCommand.Path # Should write current script name
echo $PSScriptRoot # Should write script directory
User has reported in our maillist that
$MyInvocation
throwsNotImplementedException
.I've tried to reproduce but just getting empty output instead. Here's my example script I'm testing: