Get Date
Get-Date -UFormat "%Y-%m-%d_%H:%M"
2018-06-01_13:24
For the flags, see the note at the end
$start_time = Get-Date # Do whatever Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"