Assignment O
Prompt
Create a single PowerShell script, that contains the following components:
• The file should be named (last name) _week3.ps1
• A header that contains the following comments:
◦ Name: (your full name)
◦ Assignment: OPS304, Week 3
◦ Purpose: Handling errors in PowerShell
◦ Date: (today's date)
• Complete each section and provide a comment above each section: ◦Part A: Call a cmdlet that does not exists and use a try/catch block to display information about the command not being available
◦ Part B: Write the command to display the number of errors and description of the error that occurred
◦ Part C: Execute a terminating error
◦ Part D: In a comment, explain why the error was considered terminating
You will only need to submit the single PowerShell script. The week 3 assignment should follow the same format as the sample file: