The object does not support this method.
At C:\file.ps1:3 char:1
+ $msg.Senton= $msg.Senton -replace "05.04.2022", "03.04.2022"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException