What will be the output?

$ErrorActionPreference = "stop"

try

{

Get-command -Name start-job,stop-jib

}

catch

{

write-host "Error captured"

}

Error captured

Error "Finally block missing!!"

"Get-command: The term 'stop-jib' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:4 char:1

CommandType     Name                                   
  -----------     ----                         
Cmdlet          Start-Job       

Verified Answer
Correct Option - a

To get all Infosys Certified PowerShell Scripting Associate Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram