Jenkins Pipeline Script equivalent for encoding, returnStatus, returnStdout, label?

If you review the Jenkins Pipeline optional parameters. How would that look like in the Actions Workflow?
The examples in the Migration Workflow do not cover this.

Example Jenkins Pipeline snippet

powershell(
    returnStdout: true, 
    script: '''
        # Enable streams 3-6
        $WarningPreference = 'Continue'
        ''', 
    label: "warning-label", 
    returnStatus: true,
    encoding: "UTF-8",
)

@rogerprz,

In the GitHub Actions workflows, we seems have no similar options for running PowerShell scripts.

Maybe you can try using the PowerShell options to see if it can work: