private/invokeExpresion.ps1
function Invoke-GhExpression { [CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingInvokeExpression', '', Scope='Function')] param( [Parameter(Position=0)][string]$Command ) Invoke-Expression $Command | ConvertFrom-Json } |