I am would like to read in the text after the last backslash from my text file. Currently I have:
$data=Get-Content \"C:\\temp\\users.txt\"
Since you are dealing with file paths, you can use GetFileName:
$data=Get-Content "C:\temp\users.txt" $name=[System.IO.Path]::GetFileName($data)