I'm writing a runbook/workflow like below according to this blog:
workflow Do-RemoteInlineScript
{
$uri = ...
$credential = ...
$result = InlineScript
{
<commands>
} -PSConnectionUri $uri -PSCredential $credential
}
When I run it, I will get the exception Cannot bind parameter 'ScriptBlock'.
Where do I err?
Note: My problem seems to be related to this msdn-post.