CommandInvocationIntrinsics.NewScriptBlock(String) Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compile a string into a script block.
public:
 System::Management::Automation::ScriptBlock ^ NewScriptBlock(System::String ^ scriptText);public System.Management.Automation.ScriptBlock NewScriptBlock(string scriptText);member this.NewScriptBlock : string -> System.Management.Automation.ScriptBlockPublic Function NewScriptBlock (scriptText As String) As ScriptBlockParameters
- scriptText
- String
The source text to compile.
Returns
The compiled script block.