Objective 4.8220-1202

4.8 Explain the basics of scripting.

Objective 4.8 sits in Operational Procedures, which carries 21% of the A+ Core 2 exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.

Objective title verbatim from the official objectives. CompTIA exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

Operational ProceduresEasy

Which command-line shell built into Windows can execute both native Windows Commands and PowerShell cmdlets within the same session?

Correct.

The concept

Windows provides two built-in command-line shells, and only one of them can run both native commands and cmdlets.

Why this answer

PowerShell was built to extend the Command shell's capabilities, so it can run both traditional Windows Commands and its own more extensible cmdlets in the same session.

  • AWindows Script Host runs VBScript or JScript through cscript.exe or wscript.exe, not PowerShell cmdlets.
  • Correct: PowerShell can run both Windows Commands and cmdlets, unlike the Command shell.
  • CThe Command shell can only run Windows Commands; it cannot interpret PowerShell cmdlets at all.
  • DThere is no such dual-mode shell in Windows Recovery Environment for running cmdlets.
Read the sourceMicrosoft Learn: Windows commands
Verified against learn.microsoft.com · 2026-07-27
scriptingpowershellcommand-shellcmdlets

Now you: objective 4.8 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 2

Operational ProceduresModerate

A technician must write a script that returns structured object data instead of plain text, and the same script must run unmodified on a Linux server and a macOS workstation. Which option meets both requirements?

Sample question 2 of 2

Operational ProceduresHard

A technician's .bat script runs nightly backups using Windows Commands in the Command shell. They want to add a step that calls a PowerShell cmdlet to check disk health, without leaving the cmdlet unreachable. What is the correct action?

Full A+ Core 2 question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in Operational Procedures