CompTIA A+ Core 2 (220-1102) — Question 371

Which of the following file extensions should a technician use for a PowerShell script?

Answer options

Correct answer: A

Explanation

.ps1 is the designated file extension for PowerShell scripts, making it the correct choice. The other options (.py, .sh, .bat, .cmd) are used for different scripting languages or batch files, and therefore do not apply to PowerShell.