Just to clarify what WUBI is: it lets you install from within Windows, and
Ubuntu runs from a Windows file instead of its own partition. However, in
operation, you either run Windows or you run Ubuntu. To run both "at the same
time," use a virtual machine, as others have pointed out.
Using the Linux equivalent of a DOS batch file, you can do complex things by
typing one word at the command line.