我正在尝试创建一个应用程序,该应用程序使用Tee-Object将变量放入文件(minedown.conf)中,但每次它向文件中添加内容时都会覆盖它。我正在使用
$account = Read-Host "Enter your Account SID number"
"account = $account" | Tee-Object -FilePath c:\minedown\minedown.conf
$token = Read-Host "Enter your Authority Token"
"token = $token" | Tee-Object -FilePath c:\minedown\minedown.conf
$from = Read-Host "Enter your Twilio number"
"from - $from" | Tee-Object -FilePath c:\minedown\minedown.conf
我试图让每一个都成为一个单独的行。