I am trying to import a PowerShell module using inno Setup and execute with the following code but when I run it doesn't run the script with the parameters I have mentioned someone please help me out what I am doing wrong.
[Run]
Filename: "powershell.exe"; \
Parameters: "New-ChromeExtension -ExtensionID 'agckcglooaipjmbeipibmbffnogjfdfb' -Hive Machine -File ""{app}\New-ChromeExtension.ps1"""; \
WorkingDir: {app}; Flags: runhidden
Here are the commands to execute from direct PowerShell
Import-Module C:\Scripts\New-ChromeExtension.ps1
New-ChromeExtension -ExtensionID 'bmnlcjabgnpnenekpadlanbbkooimhnj' -Hive Machine
Thanks