Pass variables into Invoke-PSUScript

I have a script that takes input parameters. I want to pass the variables from a dashboard using Invoke-PSUScript -Integrate. I don’t see in the documentation a way to pass variables as script parameters. Is this possible?

Product: PowerShell Universal
Version: 2.9.2

Invoke-PSUScript supports dynamic parameters. For example, if you had a script that accepts a message parameter:

param($Message)

$Message

Then you could use Invoke-PSUScript like this.

Invoke-PSUScript -Name 'MyScript.ps1' -Message 'Hello'

This doesn’t seem to work if a parameter is a scriptblock. Seems the typecasting on Invoke-PSUScript doesn’t understand a scriptblock and uses string instead. Any advice?