CmdletExtensions.ExecuteScript<T>(PSCmdlet, 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.
public static System.Collections.Generic.List<T> ExecuteScript<T> (this System.Management.Automation.PSCmdlet cmdlet, string contents);
static member ExecuteScript : System.Management.Automation.PSCmdlet * string -> System.Collections.Generic.List<'T>
<Extension()>
Public Function ExecuteScript(Of T) (cmdlet As PSCmdlet, contents As String) As List(Of T)
Type Parameters
- T
Parameters
- cmdlet
- PSCmdlet
- contents
- String
Returns
List<T>