Get current server date time from Active Roles

Hello,

Anyone please let me know how to get current server date time or how to convert current date time to specific timezone within the active roles and I wanted to set the date time to a virtual attribute. I'm unable to fix this issue. Here is the code I've using. Do let me know if you need any other info.

$currentDt = Get-Date
$currentDt = Get-Date $currentDt -Format "M/d/yyyy hh:mm:ss"

Thanks