# create a DataTime object and store the object in a variable "$var".
$var = New-Object System.DateTime
Read the text in file
$reader = New-Object -TypeName System.IO.StreamReader -ArgumentList "test.txt"
# $reader.ReadLine()
while ($read = $reader.ReadLine()) {
$read
}