Complete the code to define a new PowerShell module manifest.
New-ModuleManifest -Path "MyModule.psd1" -RootModule [1]
The -RootModule parameter specifies the main module file, which usually has the .psm1 extension.
Complete the code to import a module named 'MyModule'.
Import-Module [1]You can import a module by its name without specifying the file extension.
Fix the error in the code to export the function 'Get-Info' from the module.
Export-ModuleMember -Function [1]Function names in PowerShell are case-insensitive but must match the declared function name exactly including the dash.
Fill both blanks to create a module file that defines a function and exports it.
function [1] { Write-Output "Hello" } Export-ModuleMember -Function [2]
The function name must be the same in both definition and export statements.
Fill all three blanks to create a module manifest with version 1.0 and author 'Alice'.
New-ModuleManifest -Path "MyModule.psd1" -RootModule [1] -ModuleVersion [2] -Author [3]
The manifest needs the root module file, version number, and author name as strings.