How can you use an object's property in a double-quoted string?
问题 I have the following code: $DatabaseSettings = @(); $NewDatabaseSetting = \"\" | select DatabaseName, DataFile, LogFile, LiveBackupPath; $NewDatabaseSetting.DatabaseName = \"LiveEmployees_PD\"; $NewDatabaseSetting.DataFile = \"LiveEmployees_PD_Data\"; $NewDatabaseSetting.LogFile = \"LiveEmployees_PD_Log\"; $NewDatabaseSetting.LiveBackupPath = \'\\\\LiveServer\\LiveEmployeesBackups\'; $DatabaseSettings += $NewDatabaseSetting; When I try to use one of the properties in a string execute command: