Skip to content

$PSScriptRoot and $PSCommandPath in scripts converted to EXE #8

@banyula

Description

@banyula

Variabled $PSScriptRoot and $PSCommandPath are empty in all scripts that were converted to EXE.

Please provide alternatives to get these values.

$invocation.MyCommand.Path does not work either.

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