PowerShell/ファイル作成/ショートカット(lnk)の作成 - yanor.net/wiki
Powershell で読み取り専用属性を変更する - Qiita
# Remove readonly attribute. foreach($file in ((Get-ChildItem $ApiContentsPath -Recurse)| Where-Object { $_.IsReadOnly -eq $True })) {Set-ItemProperty -path $file.FullName -name IsReadOnly -value $false}