just sorted the things with below script, i'm struggling to get it extract to excel file. Please help.
$LogDate = get-date -f yyyyMMddhhmm
foreach($computer in (get-content D:\disk\servers.txt)){
Invoke-Command -computername $Computer -scriptblock { Get-Disk } | Select-Object PSComputerName, Number, PartitionStyle
}