I have programmed a matrix the code is here:
function generateRnd {
$ buffer = [console] :: BufferWidth
[string] $ rnd = random -Minimum 1000000000 -Maximum 9999999999
while ($ rnd.Length -lt $ buffer) {
$ rnd = $ rnd + $ (random -Minimum 1000000000 -Maximum 9999999999)
}
return $ rnd.Substring (0, $ buffer)
}
[console] :: ForegroundColor = "Green"
[console] :: BackgroundColor = "Black"
while (1 -eq 1) {
echo $ (generateRnd)
Sleep -Milliseconds 1
}
Now I want to reintun that in a USB that should start automatically on my laptop, how should I proceed?
Or, how can I let it run automatically?