_Screenshot -Key "Your Key"# Captures all monitors
_Screenshot -Key "Your Key"-OfWindow # captures current window
Function to upload to ImgBB's API
# To use the function, either paste it in your terminal or dot source it.
_UploadImage -Path "C:\Temp\Image.png"-Key "Your Key"
_UploadImage -Path "C:\Temp\Image.png"-Key "Your Key"-OpenInBrowser
# . .\UploadFolder.ps1# Upload all images in a folder recursively.# Recommended to use the included script shown below for file type validation.Get-ChildItem-Path "C:\Temp\"| _UploadFolder -Key "Your Key"
Upload Script
.\ImageUploadScript.ps1 -Path "C:\Temp\Image.png"-Key "Your Key"-OpenInBrowser
# Upload all images in a folder
.\ImageUploadScript.ps1 -Path "C:\Temp\"-Key "Your Key"-UploadFolder