Calling a Script job from a dashboard

OK so this seems to work.

$Script = Get-PSUScript | Where-Object {$_.Name -eq "Set-SlackDisabledUsers.ps1"} 
Invoke-PSUScript -Script $Script -Integrated | Wait-PSUJob
1 Like