+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutF ileCommand out-file : The given path's format is not supported. At C:\Users\\Desktop\checkup-script.ps1:54 char:4 + "Windows service $servicename : check passed." >> $logFile + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (:) [Out-File], NotSupportedException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutF ileCommand out-file : The given path's format is not supported. At C:\Users\\Desktop\checkup-script.ps1:87 char:3 + "Windows service $servicename : check failed. The service doesn't exis t!" >> $ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ + CategoryInfo : OpenError: (:) [Out-File], NotSupportedException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutF ileCommand out-file : The given path's format is not supported. At C:\Users\\Desktop\checkup-script.ps1:56 char:4 + "Windows service $servicename : check failed. The service is not r uning." >> ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ + CategoryInfo : OpenError: (:) [Out-File], NotSupportedException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutF ileCommand