System.Drawing名前空間のBitmapクラスを使う。以下は横640ピクセル、縦480ピクセルの無地のBitmapオブジェクトを静的なnewメソッドで作成し、カレントディレクトリにPNG形式(RGBの24ビットフルカラー)のファイル640x480_24.pngを出力した例。
PS > Add-Type -AssemblyName System.Drawing
PS > $cdir = Get-Location
PS > [IO.Directory]::SetCurrentDirectory($cdir)
PS > $if = [Drawing.Imaging.ImageFormat]::Png
PS > $im = [Drawing.Bitmap]::New(640, 480)
PS > $im.Save("640x480_24.png", $if)
静的メソッドNewについては、以下のリンク先を参照のこと。
https://learn.microsoft.com/ja-jp/powershell/module/microsoft.powershell.core/about/about_object_creation?view=powershell-7.5