Thank you for posting in Microsoft Q&A forum.
1,Does the command work outside of Intune?
2,Do you set the install behavior to the user or to the system? If it is set to the user, please change it to the system to have a try.
Thanks for your time. Have a nice day!
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.