Criando Byte [] no PowerShell

Eu tenho algum código do PowerShell que está usando uma API COM. Eu estou recebendo um erro de incompatibilidade de tipo quando eu passar em uma matriz de bytes. Aqui está como eu estou criando a matriz, bem como algumas informações de tipo

PS C:\> $bytes = Get-Content $file -Encoding byte
PS C:\> $bytes.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Object[]                                 System.Array


PS C:\> $bytes[0].GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Byte                                     System.ValueType

Analisando a API, descobri que está procurando por um Byte [] com um tipo base de System.Array.

PS C:\> $r.data.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Byte[]                                   System.Array

PS C:\> $r.data[0].gettype()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Byte                                     System.ValueType

O que estou tentando fazer é converter $ bytes no mesmo tipo que $ r.data. Por algum motivo, $ bytes está sendo criado como um objeto []. Como posso lançá-lo para um Byte []?

questionAnswers(3)

yourAnswerToTheQuestion