Block. Create(String) Method
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.
Create a script block based on a script to be parsed when execution context is provided.
public: static System::Management::Automation::ScriptBlock ^ Create(System::String ^ script);
public static System.Management.Automation.ScriptBlock Create (string script);
static member Create : string -> System.Management.Automation.ScriptBlock
Public Shared Function Create (script As String) As ScriptBlock
The string to compile.