I would like to tidy up some data that comes from a get-datastore from vshere 5 i am selecting 'Name','CapacityGB','FreeSpaceGB'
i want to round the CapacityGB','FreeSpaceGB' but as i pass it to a function that does other tasks, which work fine.
i need to edit the data then pass the $contents to the function how do i create a variable with rows in i have tried adding the data to an array does not work tried a hash table does not work how do i make rows?
this then gets pass to the function to insert into word
$cell.Text=$contents[$row-2].($columnProperties[$col-1]).tostring()