506528 (1) [Avatar] Offline
#1
Hello!

In chapter 10, page 132 in the Above and Beyond section it suggests to enter:
Get-Process |
Format-Table Name,
@{name='VM(MB)';expression={$_.VM / 1 MB -as [int]}} -autosize

It says that after you hit enter on the first line Powershell changes its prompt and waits for more commands, however I can't get past that first line, it just throws an error saying 'An empty pipe element is not allowed'. How do I resolve this? It would be very nice to be able to enter commands over multiple lines rather than sometimes super duper long one-line commands