Powershellで数値を二進数に変換

地味にべんりなのでprofile.ps1に入れた

function bin($n) {
  return [convert]::ToString($n,2)
}