Create a temporary file in the TMP environment variable location in powershell:
$TempFile = [System.Io.Path]::GetTempFileName()
So as an example the above will create something like this:
C:\Users\
This $TempFile variable can then be used in a script.