Objective 4.8

220-1202

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.

4-8Operational Procedures

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

PowerShell, which runs both Windows Commands and PowerShell cmdletsCorrect · your answerCorrect: PowerShell can run both Windows Commands and cmdlets, unlike the Command shell.
Windows Script Host, which executes cmdlets through cscript.exeWindows Script Host runs VBScript or JScript through cscript.exe or wscript.exe, not PowerShell cmdlets.
The Command shell (cmd.exe), limited to running Windows Commands onlyThe Command shell can only run Windows Commands; it cannot interpret PowerShell cmdlets at all.
Windows Recovery Environment, used only for cmdlets after boot failureThere is no such dual-mode shell in Windows Recovery Environment for running cmdlets.

Correct.

Checked against learn.microsoft.com, July 2026

Concept

A newer command-line environment meant to replace an older one has to keep understanding the old vocabulary, or every script already in production breaks the day it ships. That compatibility only points one direction. The newer environment absorbs what came before it and adds its own richer syntax on top; the older one knows nothing about anything invented after it and never will. Asked which of two tools is the superset, the later arrival is the safe bet.

Why A

The two shells are documented as one extending the other, so the newer session still parses the legacy syntax while adding the object-based commands introduced with it. The older one predates that syntax entirely and was never retrofitted to read it, which is why the overlap runs in only one direction.

Source

You can run both Windows Commands and PowerShell cmdlets in PowerShell, but the Command shell can only run Windows Commands and not PowerShell cmdlets.

Microsoft Learn: Windows commands, checked July 2026
#scripting#powershell#command-shell#cmdlets

Now you: objective 4.8 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

4-8Operational Procedures

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 3

4-8Operational Procedures

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?

Sample question 3 of 3

4-8Operational ProceduresChoose 2

A technician writes one script locally on a Windows workstation at its default execution policy and downloads another from a vendor site. Which two rules apply? (Choose two.)

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