从下面的代码中没有得到任何输出:
PS C:\WINDOWS\System32> $PWD = import-Clixml -path "C:\BCBS\cred.xml";
$BTEQ
".logon dbname\username,$PWD
select infokey from dbc.dbcinfo
.logoff"
$BTEQ| bteq
## $BTEQ
.logon dbname\username,System.Management.Automation.PSCredential
select infokey from dbc.dbcinfo
.logoff
BTEQ 16.20.00.07 (32-bit) Thu Feb 25 08:46:56 2021 PID: 16336
+---------+---------+---------+---------+---------+---------+---------+----
*** BTEQ exiting due to EOF on stdin.
*** Exiting BTEQ...
*** RC (return code) = 0