In

A convenience function that executes a script from a specified path.

Syntax

In
   [[-path] <Object>]
   [[-execute] <ScriptBlock>]

Description

Before the script block passed to the execute parameter is invoked, the current location is set to the path specified. Once the script block has been executed, the location will be reset to the location the script was in prior to calling In.

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Optional Parameters

-execute

The script to be executed in the path provided.

Type:ScriptBlock
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-path

The path that the execute block will be executed in.

Type:Object
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False