Scripting app Install to System with User Interaction works OnlyWhenAUserIsLoggedOn
In Powershell, scripting the User Experience for application deployment Install to System currently only allows you to use User Interaction if the logon requirement is set to "OnlyWhenAUserIsLoggedOn". This makes it a pain when trying to automate application updates. You can change this manually in SCCM (with a warning). If it can be changed in the UI then we should be able to do it with Powershell.
Thank you for your feedback. We have opened a bug internally to track this issue.