powershell check printer status

1.# Powershell check the status of a printer using
2.# printerstatus and detectederrorstate
3.
4.Get-WmiObject win32_printer | select name, printerstatus, detectederrorstate