powershell subroutine udpate