Hello, I was trying to use your ps script but it throw error:
Out-File : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'FilePath'. Specified method is not supported.
At line:1 char:66
- ... e -append -Encoding ascii -filepath .\jstack.17044.1.1602071301,79466
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidArgument: (:) [Out-File], ParameterBindingException
- FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.OutFileCommand