• Thank you! It works for me to ($d = Get-Date).