1
Vote

Allow unattended execution of Import-PSModule

description

When I run Import-PSModule to install a script from NuGet, I get a Prompt for Choice asking for my preferred installation scope for the downloaded script.
I'm trying to use Import-PSModule in an unattended execution environment (as part of my Continuous Integration build), so I need to be able to script that option instead of having to manually input it.
I'm pretty new to powershell, so will this "just work" in my CI environment, or will ImportPSModule need to be modified to allow this behavior?

comments