Complete the code to import a module named 'MyModule'.
Import-Module [1]The Import-Module command loads the specified module so you can use its functions.
Complete the code to create a new module file named 'Utils.psm1'.
New-Item -Path . -Name [1] -ItemType FilePowerShell module files have the extension .psm1.
Fix the error in the code to export a function named 'Get-Info' from a module.
Export-ModuleMember -Function [1]The function name must match exactly, including case and hyphens.
Fill both blanks to define a function named 'Show-Message' that writes 'Hello' to the console.
function [1] { [2] "Hello" }
The function name is 'Show-Message'. To display text, Write-Host is commonly used.
Fill all three blanks to create a module file that defines and exports a function 'Get-DateInfo' which returns the current date.
function [1] { return (Get-Date).[2] } Export-ModuleMember -Function [3]
The function is named 'Get-DateInfo'. To get the current date, use (Get-Date).Date. Export the function by its name.