Question: I have to generate a report with dynamic content passed by parameters. The problem is that they ask me to adjust different margins according to whether the page is odd or even. I've seen some workarounds to this, where they use `$V {PAGE_NUMBER}% 2 == 1`, but in my case, as the content may vary, I don't think it's possible.

Answer: 
The typical pattern would be:

```
[pscustomobject]@{
  colLabel='MyLabel'
  a='a2'
  b='b2'
} | Out-GridView

```

or

```
get-process | select-object name,id,ws | Out-GridView

```

Here's 1 example of a calculated property:

```
1 | select-object @{ n='Num'; e={$_} }

Num
---
  1

```
Sure, use a temporary CSV file:

```
[string] $colLabel = 'MyLabel'
[string] $a = 'a'
[string] $b = 'b'
@"
$($colLabel)`,
$($a)`,
$($b)
"@ | Set-Content temp.csv
Import-Csv temp.csv | Out-GridView
Remove-Item temp.csv

```

First it creates a temporary csv file, then imports and passes to grid view and then deletes it.