Invoke-RestMethod
and Invoke-Expression
. It is also important that these cmdlets are processed in this order, which I will touch on at the bottom of this pageiex
commands can come from a String
. This can be easily demonstrated in this exampleInvoke-RestMethod
before you can execute in Invoke-Expression