I have a variable in a powershell script that is becoming too large for memory, I need to move the variable to a system file or temporary file. The variable is a PScustomobject as an array of hashtables. I hope to be able to use convertto-json ready for a python script to table the data.
Currently my program works, it's just that one variable that's giving me issues. I have no idea how to move a variable to a system file without losing integrity.