Powershell Date Difference Function In Sql