Scoring molecular wires subject to an ultrafast laser pulse for molecular electronic devices