A quick reference to copypasta useful PowerShell commands. (randomCollection)
1.) Identify & Kill a Process Listening on a Given Port (assuming PORT 5000 and PID 348):
> netstat -ano | findstr :5000
> TASKKILL /PID 348 /F
2.) Get CPU Cores and Processor Information
> Get-WmiObject -Class Win32_Processor | Select-Object -Property Name, Number*
3.) Get List of Connected Physical Drives
> wmic diskdrive list brief
4.) Force Delete a Protected Folder w/o Confirmation [cmd.exe]
> rmdir /Q /S dir_name