What platform does `&&` not work on? It works fine in Windows `cmd`, which is the typical shell to worry about portability with.
Edit: Never mind, I'm apparently wrong.
> rm test.txt && java -version
rm: cannot unlink entry "test.txt": The system cannot find the file specified.