Examples of using Function or script in English and their translations into Portuguese
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Official/political
To run a function or script, it is not added to the current scope.
NET Framework types of objects that can be piped to the function or script.
To create a dynamic parameter for a function or script, use the DynamicParam keyword.
For example, the Description keyword precedes a description of a function or script.
You can include a Parameter keyword for each parameter in the function or script syntax.
EXAMPLE A sample command that uses the function or script, optionally followed by sample output and a description.
Syntax: The Syntax section of the Help topic is generated from the function or script syntax.
To display detailed information about a cmdlet, function, or script, including descriptions of its parameters and examples of its use, use the Detailed parameter of the Get-Help cmdlet.
Also, because this feature is optional,it does not work for every cmdlet, function, or script Help topic.
The Parameter keywords can appear in any order in the comment block, but the function or script syntax determines the order in which the parameters(and their descriptions) appear in Help topic.
The value of the Required, Position, andDefault value attributes is taken from the function or script syntax.
COMPONENT The technology or feature that the function or script uses, or to which it is related.
MyInvocation Contains an object with information about the current command, such as a script, function, or script block.
You can also specify a parameter description by placing a comment in the function or script syntax immediately before the parameter variable name.
If you include a Break statement in a Trap statement list,Windows PowerShell stops the function or script.
However, if you place the command in a function or a script, then you can create a useful function or script name andyou can create one or more aliases for the function or script.
Get-Help uses the Internet address(Uniform Resource Identifier[URI]) that appears in the first item of the Related Links section of a cmdlet, function, or script help topic.
If Windows PowerShell does not handle a terminating error in some way,Windows PowerShell also stops running the function or script using the current pipeline.
Remarks: The Remarks section of the Help topic is automatically generated from the function or script name.
In contrast, advanced functions are written in the Windows PowerShell script language in the same way that other functions or script blocks are written.
In practice, transactions are likely to be run in scripts, with the secondary transaction being run by a function or helper script that is called by the main script. .
Sets a line breakpoint in a Windows PowerShell script or function.
But, you can add a script or function to the current scope by using dot source notation.
EXTERNALHELP< XML Help File Path>Specifies the path to an XML-based Help file for the script or function.
Trap statements handle the terminating errors andallow execution of the script or function to continue instead of stopping.
This variable has a value only in a scope where parameters are declared, such as a script or function.
The ConvertFrom-StringData cmdlet is considered to be a safe cmdlet that can be used in the DATA section of a script or function.