A. Missing $_ before Status in Where-Object filter.
B. Export-Csv cannot be used without -Path parameter.
C. Get-Process does not return objects.
D. Import-Csv cannot read CSV files.
Solution
Step 1: Check Where-Object filter syntax
The filter uses Status without $_, which is required to reference the current object.
Step 2: Validate other commands
Export-Csv works without -Path if file name is given; Get-Process returns objects; Import-Csv reads CSV files correctly.
Final Answer:
Missing $_ before Status in Where-Object filter. -> Option A
Quick Check:
Where-Object needs $_ for property access [OK]
Hint: Use $_.Property inside script blocks for object properties [OK]
Common Mistakes:
Omitting $_ in script block filters
Thinking Export-Csv always needs -Path parameter
Believing Get-Process returns text, not objects
5. You want to automate a daily report that lists all processes running for more than 1 hour and save it as long_processes.csv. Which script snippet correctly achieves this?