< Back

InLocation

Wed Jan 15, 2020 4:02 am

NAME InLocation



SYNOPSIS

Change working directory to $Location, run $Callback and return to the previous directory





SYNTAX

InLocation [[-Location] <String>] [[-Callback] <ScriptBlock>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Location <String>

Location to which the working directory will be changed



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Callback <ScriptBlock>

Callback which will be call in the given $Location



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