Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Is there a better way to display multiple strings + variables, 4 column aligned?
Post Flair (click to view more posts with a particular flair)
Post Body

Working on a script to grab a bunch of system data and output on screen cleanly.

The best I have come up with so far is the following:

$a = "$var1.name1`t$var1.value1`t$var1.name2`t$var1.value2"
$b = "$var2.name1`t$var2.value1`t$var2.name2`t$var2.value2"
$array = $a,$b
$array
System Name<tab>VALUE<tab>Domain Name<tab>VALUE
IP Address<tab>VALUE<tab>Total Ram<tab>VALUE

Is it possible to build a 2D array (ordered?) better then with having to manually add extra tabs to fix formatting?? I've played with building this off/on for a while now messing with nested arrays, nested hash tables, pscustomobjects and I find a different guide online each time I look but nothing creates a clean output like you'd see from a single cmdlet | ft output.

Author
Account Strength
90%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,174
Link Karma
215
Comment Karma
3,959
Profile updated: 3 days ago
Posts updated: 3 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago