The following .NET script in Powershell ISE

```
$stream = [System.IO.StreamWriter] "t.txt"
$number = 1
1..500000 | % {
      $stream.Write("TEST_825A_")
      $stream.WriteLine($number)
$number +=1
}

$stream.close()

```

Outputs a text file with

```
TEST_825A_1

TEST_825A_2

TEST_825A_3

...

TEST_825A_500000

```

I need it to be padded with zeroes to 8 digits

```
TEST_825A_00000001

...

TEST_825A_00500000

```

This is not a language I am even close to native in, and Googling doesn't seem to help.(Or I don't understand how to implement the answers)

Could someone please help me out here?

EDIT:

Working code

```
$stream = [System.IO.StreamWriter] "t.txt"
$number = 1
1..1000 | % {
      $stream.Write("TEST_825A_")
      $stream.WriteLine($number.ToString("00000000"))
$number += 1

}

$stream.close()

```