Updated fake duplex to support running as a script directly

Updated fake duplex to support running as a script directly