Complete the code to import a script module named 'MyModule'.
Import-Module [1]Script modules have the extension .psm1. To import a script module, use its .psm1 file.
Complete the code to import a binary module named 'NetModule'.
Import-Module [1]Binary modules are compiled and have the extension .dll. Use the .dll file to import a binary module.
Fix the error in the command to import a script module named 'Utils'.
Import-Module Utils[1]Script modules require the .psm1 extension to be imported correctly.
Fill both blanks to create a script module file and import it.
New-Item -Path . -Name [1] -ItemType File Import-Module [2]
Script modules use the .psm1 extension both when creating the file and importing it.
Fill all three blanks to check if a module is binary or script by its extension.
switch -Wildcard ($moduleName) {
'*.psm1' { $type = '[1]' }
'*.dll' { $type = '[2]' }
default { $type = '[3]' }
}Script modules end with '.psm1', binary modules with '.dll', and others are unknown.