< Back
In
Post
NAME In
SYNOPSIS
A convenience function that executes a script from a specified path.
SYNTAX
In [[-path] <Object>] [[-execute] <ScriptBlock>] [<CommonParameters>]
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.
PARAMETERS
-path <Object>
The path that the execute block will be executed in.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-execute <ScriptBlock>
The script to be executed in the path provided.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
SYNOPSIS
A convenience function that executes a script from a specified path.
SYNTAX
In [[-path] <Object>] [[-execute] <ScriptBlock>] [<CommonParameters>]
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.
PARAMETERS
-path <Object>
The path that the execute block will be executed in.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-execute <ScriptBlock>
The script to be executed in the path provided.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS