< Back
Use-PodeScript
Post
NAME Use-PodeScript
SYNOPSIS
Loads a script, by dot-sourcing, at the supplied path.
SYNTAX
Use-PodeScript [-Path] <String> [<CommonParameters>]
DESCRIPTION
Loads a script, by dot-sourcing, at the supplied path. If the path is relative, the server's path is prepended.
PARAMETERS
-Path <String>
The path, literal or relative to the server, to some script.
Required? true
Position? 1
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Use-PodeScript -Path './scripts/tools.ps1'
RELATED LINKS
SYNOPSIS
Loads a script, by dot-sourcing, at the supplied path.
SYNTAX
Use-PodeScript [-Path] <String> [<CommonParameters>]
DESCRIPTION
Loads a script, by dot-sourcing, at the supplied path. If the path is relative, the server's path is prepended.
PARAMETERS
-Path <String>
The path, literal or relative to the server, to some script.
Required? true
Position? 1
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Use-PodeScript -Path './scripts/tools.ps1'
RELATED LINKS