< Back

Invoke-Tokenize

Fri Jan 10, 2020 9:12 pm

NAME Invoke-Tokenize



SYNOPSIS

Tokenizes a script.





SYNTAX

Invoke-Tokenize [-ScriptPath] <String> [<CommonParameters>]





DESCRIPTION

Gets the content of a script located at a given path and tokenizes it.





PARAMETERS

-ScriptPath <String>

The path to the script to be tokenized



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



NOTES





Author: Thomas Rayner (@MrThomasRayner), workingsysadmin.com



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Invoke-Tokenize -ScriptPath .\\MyScript.ps1















RELATED LINKS

http://workingsysadmin.com