SyntaxFix
Write A Post
Hire A Developer
Questions
In powershell 5.1 you can actually use install-package, but it can't take extra msi arguments.
install-package .\file.msi
Otherwise with start-process and waiting:
start -wait file.msi ALLUSERS=1,INSTALLDIR=C:\FILE