Fixing protect/unprotect file cmdlets