How To Convert String To Script Block Using PowerShell

Some PowerShell CmdLets have as parameter ScriptBlock and as such expects ScriptBlock data type for this parameter. Let me illustrate that with one example. Invoke-Command CmdLet has ScriptBlock parameter that … Continue reading How To Convert String To Script Block Using PowerShell