Are you asking how to truncate and shrink the transaction logs for a content database using PowerShell?
If so, I recommend asking this in the SQL Server forum as this isn't really a SharePoint question. We can flag your post for the moderators and they can move it.