Skip to content
This repository was archived by the owner on Feb 4, 2019. It is now read-only.
This repository was archived by the owner on Feb 4, 2019. It is now read-only.

$MyInvocation is not supported #415

@ForNeVeR

Description

@ForNeVeR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions