PowerShell alone break a file lock held by:
The command you're looking for to unlock a file in PowerShell, assuming you want to remove the read-only attribute or a similar restriction, can be achieved with a few approaches. The actual method might depend on what you exactly mean by "unlock" and the context (like file locking due to a process holding a handle to it). powershell unlock file