why does this not evaluate to 6

Maybe you have something weird in your $profile?

Here is what I get. JS is correct.

PS C:> $x = 5
PS C:> $x
5
PS C:> $y = ($x++)
PS C:> $y
5
PS C:> $y = ($x++)
PS C:> $y
6
PS C:> $y = ($x++)
PS C:> $y
7
PS C:>