I have a powershell script that inserts webparts onto a page. The problem is that if I don't have the page checked out it will throw the following error:
Exception calling "AddWebPart" with "3" argument(s): "The file is not checked out. You must first check out this document before making changes." At C:\temp\AddWebParts.ps1:49 char:27
Is it possible to checkout a page using PowerShell?