When you use double quotes, you can use variable/expression substitution in a string.
Something like this for example
$path="C:\Users\user1\Desktop\scriptfolder\report-$(Get-Date-Format 'yyyyMMdd-HHmm').txt"
Get-Cluster|Out-File-FilePath $path
When you use double quotes, you can use variable/expression substitution in a string.
Something like this for example
Get-Cluster|Out-File-FilePath $path