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 Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in