Get-Date not only will retrieve the current date, but you can also construct a custom date format to create time-stamped temporary file names:
(Get-Date -format 'yyyy-MM-dd hh-mm-ss') + '.tmp'
Get-Date not only will retrieve the current date, but you can also construct a custom date format to create time-stamped temporary file names: