I am trying to create a variable that will name a text file using the output operator in powershell. The first example is what would normally be done without the variable (which works), and the second is going to be the way that I am trying to do it (which is not working).

Example I:

```
"hello" >> janice.txt

```

As we can see, the result of Example I would be a text file called janice.txt

Example II.

```
$i = "janice"
"hello" >> $i.txt

```

The result that I would expect from example II would be a text file named:
janice.txt just like the first example since the variable $i is storing the string "janice".

Powershell is executing the command with no errors, but no .txt file is created.
I'm trying to figure out why It's not working and if anything, is it completely irrelevant. 

This is my first time asking a question so I apologize in advance if it is wordy and rather vague.