Skip to content

Test-MyInvocation

SYNOPSIS

Display details about the current script or command invocation.

SYNTAX

Test-MyInvocation

DESCRIPTION

This function outputs the `$MyInvocation` object, which contains details about the current script or command invocation, such as the script name, parameters, and calling context.

EXAMPLES

EXAMPLE 1

Test-MyInvocation

Displays the `$MyInvocation` object for the current script or command invocation.

PARAMETERS

INPUTS

OUTPUTS

NOTES