Redirecting standard input\output in Windows PowerShell January 20, 2023 by Tarik You can’t hook a file directly to stdin, but you can still access stdin. Get-Content input.txt | ./program > output.txt