AsInteractive wasn't invoked as Invoke-ScheduledTask since it wasn't included in the if statement.
this fixes the issue and allows running as interactive session remotely.
Also I've bumped the version to match the latest version in the PowerShell gallery.
AsInteractive wasn't invoked as Invoke-ScheduledTask since it wasn't included in the if statement. this fixes the issue and allows running as interactive session remotely. Also I've bumped the version to match the latest version in the PowerShell gallery.