If you are using a GUI it is nice to have a form icon. I didn't want to have an ico or bmp file in the same folder as the ps1 file because it might get lost. So this bit of code can be put into your ps1 source file to give you a form icon
$iconstring = (@"
$memory = new-object System.IO.MemoryStream
$memory.write(($bytes=[System.Convert]::FromBase64String($iconstring)), 0, $bytes.length)
$FORM.Icon = [System.Drawing.Icon]::FromHandle((new-object System.Drawing.Bitmap -argument $memory).GetHIcon())
Before and After