I am trying to replicate the functionality of the cat command in Unix.
cat
I would like to avoid solutions where I explicitly read both files into variables
You can do something like:
get-content input_file1 > output_file get-content input_file2 >> output_file
Where > is an alias for "out-file", and >> is an alias for "out-file -append".
>