Input arguments with spaces in them must be defined a certain way. If the input arguments (path and filename) contain spaces, they need to be inside quotes and the spaces have to be protected by "\ ".

For example, if the filename is test batch mode.oml (two spaces), then the command is:

–f "$HOME/test\ batch\ mode.oml"