Parameters and Arguments are both valid for this function. Shouldnt be throwing an error. Based on the documentation the command is also correct, unless it did not get copied corectly.
[31-03-2021 16:09:28] [Initialization] Hardware platform is [Virtual:Xen]
[31-03-2021 16:09:28] [Initialization] Computer name is [DESKTOp]
[31-03-2021 16:09:28] [Initialization] Current user is [DESKTOP\test]
[31-03-2021 16:09:28] [Initialization] Current Culture is [en-US] and UI language is [EN]
[31-03-2021 16:09:28] [Initialization] Deployment type is [Installation]
[31-03-2021 16:09:28] [Initialization] Script [C:\Users\test\Desktop\Cognos\Scripts\SiriusXMAppD
eployToolKit.ps1] dot-source invoked by [C:\Users\test\Desktop\Cognos\Deploy-Application.ps1]
[31-03-2021 16:09:28] [Initialization] The following users are logged on to the system: DESKTOP-\test
[31-03-2021 16:09:29] [Initialization] Running as [test] in user context.
[31-03-2021 16:09:29] [Initialization] Session 0 not detected.
[31-03-2021 16:09:29] [Initialization] Installation is running in [Interactive] mode.
[31-03-2021 16:09:29] [Installation] Working Directory is [C:\Users\test\Desktop\Cognos\Install]
[31-03-2021 16:09:29] [Installation] Executing [C:\Users\test\Desktop\Cognos\Install\ca_model_wi
n32_11.0.8.exe -i silent -f "C:\Users\test\Desktop\Cognos\Install\response.properties"]...
[31-03-2021 16:09:57] [Installation] Execution failed with exit code [1001]
[31-03-2021 16:09:57] [Installation] cognos Instal
lation completed with exit code [1001].
[31-03-2021 16:09:57] [Installation] -
just came across by accident ^.^
Two things that came to my mind and hopefully can lead further to the solution…
As the Log says, @anchearavind 's command is running in User-Context.
User’s are normally not allowed to (over)write Files and/or Folders within the ProgramFiles-Folders. - So give it a try running with elevated privileges.
The other thing is, that sometimes installers need to be called with an actual working directory, not providing a working directory somtimes lead to weird issues, so this might be worth a try, too.