The entry point function accept cwd param