Game/DrawCard.ps1

<#
.Synopsis
    Draws a random card
.Description
    Returns a random card that will be at -X/-Y position on the screen
#>

param(
[int]$x =0,
[int]$y =0
)

[PSCustomObject]@{
    PSTypeName='PowerArcade.PlayingCard'
    Number = 1..13 | Get-Random
    Suite = '♠','♣','♥','♦' | Get-Random
    X = $x
    Y = $y
}