If I run this command in powershell 4 on windows 10:
powershell $ENV:ProgramFiles
I get this:
C:\Program Files\
which is great!
If I do the same thing is powershell 5 on a Windows Nano Server I get something like this: http://paste.openstack.org/show/479695/
"\n******************** START Argument Information ********************\r\nArgs'
Count: 1\r\n #0: $ENV:ProgramFiles\r\n******************** END Argument I
nformation ********************\n\r\n\n.................... START Result Output
....................\r\nResults Count: 1\r\n #0: C:\\Program Files\r\n.....
............... END Result Output ....................\n\r\n\n...............
..... START Error Output ....................\r\nErrors Count: 0\r\n..........
.......... END Error Output ....................\n\r\n\n....................
START Warning Output ....................\r\nWarnings Count: 0\r\n.............
....... END Warning Output ....................\n\r\n\n.................... ST
ART Information Output ....................\r\nInformation Count: 0\r\n.........
........... END Information Output ....................\n\r\n\n...............
..... START Verbose Output ....................\r\nVerbose Count: 0\r\n.........
........... END Verbose Output ....................\n\r\n"
What can I do to get just the stdout of the command?