WMI Disk Space Check
Check drive space from the command line
Get-wmiobject -class win32_logicaldisk -Filter "DriveType = '3'"| Format-Table DeviceId, MediaType, @{n="Size";e={[math]::Round($_.Size/1GB,2)}},@{n="FreeSpace";e={[math]::Round($_.FreeSpace/1GB,2)}}