Complete the code to display the PowerShell version.
Write-Output $PSVersionTable.PSVersion[1]The $PSVersionTable.PSVersion.Major property shows the major version number of PowerShell.
Complete the code to get the list of running processes in PowerShell.
Get-[1]Get-Process is the correct cmdlet to list running processes.
Fix the error in the code to list all files in a folder.
Get-ChildItem -Path [1]In PowerShell, backslashes \ are used for Windows paths. The path should not end with a slash for this command.
Fill both blanks to create a hashtable with keys and values.
$info = @{ [1] = 'PowerShell'; [2] = 7 }The keys Name and Version describe the hashtable content clearly.
Fill all three blanks to filter processes with CPU usage greater than 100.
$highCPU = Get-Process | Where-Object { $_.[1] [2] [3] }Name instead of CPUThe property CPU is compared with > to the number 100 to filter processes using more CPU time.
