you mean automating the approval of patches?
just use the auto approve rules and automatic synchronization schedule and you will not have to intervene
2012 R2 has a ton of PowerShell cmdlets for WSUS so that's what you have to look at if you want to script it